home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / Documentation / Utilities Component < prev   
MacBinary  |  1994-04-21  |  47.6 KB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Wed Apr 20 09:09:49 1994, modified Thu Apr 21 08:07:12 1994, creator 'HLX2', type 'ONLN', 44891 bytes "Utilities Component" , at 0xafdb 3585 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 13 55 74 69 6c 69 74 | 69 65 73 20 43 6f 6d 70 |..Utilit|ies Comp|
|00000010| 6f 6e 65 6e 74 00 00 00 | 00 00 00 00 00 00 00 00 |onent...|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 00 af 5b 00 | 00 0e 01 a9 da da 1d a9 |......[.|........|
|00000060| dc 1c f0 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 a4 5f 00 00 |........|....._..|
|00000080| 55 74 69 6c 69 74 69 65 | 73 20 43 6f 6d 70 6f 6e |Utilitie|s Compon|
|00000090| 65 6e 74 0d 0d 49 6e 74 | 72 6f 64 75 63 74 69 6f |ent..Int|roductio|
|000000a0| 6e 0d 54 68 65 20 55 74 | 69 6c 69 74 69 65 73 20 |n.The Ut|ilities |
|000000b0| 63 6f 6d 70 6f 6e 65 6e | 74 20 69 73 20 61 20 63 |componen|t is a c|
|000000c0| 6f 6c 6c 65 63 74 69 6f | 6e 20 6f 66 20 6d 69 73 |ollectio|n of mis|
|000000d0| 63 65 6c 6c 61 6e 65 6f | 75 73 20 75 74 69 6c 69 |cellaneo|us utili|
|000000e0| 74 69 65 73 20 77 68 69 | 63 68 20 64 6f 6e d5 74 |ties whi|ch don.t|
|000000f0| 20 6c 6f 67 69 63 61 6c | 6c 79 20 62 65 6c 6f 6e | logical|ly belon|
|00000100| 67 20 69 6e 20 74 68 65 | 20 6f 74 68 65 72 20 4f |g in the| other O|
|00000110| 50 46 20 63 6f 6d 70 6f | 6e 65 6e 74 73 2e 20 43 |PF compo|nents. C|
|00000120| 75 72 72 65 6e 74 6c 79 | 2c 20 74 68 65 72 65 20 |urrently|, there |
|00000130| 69 73 20 6f 6e 6c 79 20 | 6f 6e 65 20 75 74 69 6c |is only |one util|
|00000140| 69 74 79 20 69 6e 20 74 | 68 65 20 55 74 69 6c 69 |ity in t|he Utili|
|00000150| 74 69 65 73 20 63 6f 6d | 70 6f 6e 65 6e 74 3a 20 |ties com|ponent: |
|00000160| 74 68 65 20 72 65 66 65 | 72 65 6e 63 65 20 63 6f |the refe|rence co|
|00000170| 75 6e 74 69 6e 67 20 75 | 74 69 6c 69 74 79 2e 0d |unting u|tility..|
|00000180| 55 74 69 6c 69 74 69 65 | 73 20 43 6f 6d 70 6f 6e |Utilitie|s Compon|
|00000190| 65 6e 74 20 4f 76 65 72 | 76 69 65 77 0d 54 68 65 |ent Over|view.The|
|000001a0| 20 55 74 69 6c 69 74 69 | 65 73 20 63 6f 6d 70 6f | Utiliti|es compo|
|000001b0| 6e 65 6e 74 20 63 6f 6e | 74 61 69 6e 73 20 31 20 |nent con|tains 1 |
|000001c0| 63 6c 61 73 73 20 61 6e | 64 20 31 31 20 6d 65 74 |class an|d 11 met|
|000001d0| 68 6f 64 73 2e 20 59 6f | 75 20 77 69 6c 6c 20 6c |hods. Yo|u will l|
|000001e0| 69 6b 65 6c 79 20 6e 65 | 65 64 20 74 6f 20 6b 6e |ikely ne|ed to kn|
|000001f0| 6f 77 20 61 62 6f 75 74 | 2c 20 61 6e 64 20 75 73 |ow about|, and us|
|00000200| 65 2c 20 74 68 65 20 6d | 61 6a 6f 72 69 74 79 20 |e, the m|ajority |
|00000210| 6f 66 20 74 68 65 20 55 | 74 69 6c 69 74 69 65 73 |of the U|tilities|
|00000220| 20 63 6f 6d 70 6f 6e 65 | 6e 74 20 6d 65 74 68 6f | compone|nt metho|
|00000230| 64 73 2e 0d 44 69 72 65 | 63 74 6f 72 79 0d 46 57 |ds..Dire|ctory.FW|
|00000240| 46 6f 75 6e 64 55 0d 48 | 65 72 69 74 61 67 65 0d |FoundU.H|eritage.|
|00000250| 46 57 5f 54 43 6f 75 6e | 74 65 64 50 74 72 09 33 |FW_TCoun|tedPtr.3|
|00000260| 0d 55 74 69 6c 69 74 69 | 65 73 20 63 6f 6d 70 6f |.Utiliti|es compo|
|00000270| 6e 65 6e 74 20 63 6c 61 | 73 73 65 73 0d 54 68 65 |nent cla|sses.The|
|00000280| 72 65 20 69 73 20 6f 6e | 6c 79 20 6f 6e 65 20 63 |re is on|ly one c|
|00000290| 6c 61 73 73 20 69 6e 20 | 74 68 65 20 55 74 69 6c |lass in |the Util|
|000002a0| 69 74 69 65 73 20 63 6f | 6d 70 6f 6e 65 6e 74 2c |ities co|mponent,|
|000002b0| 20 46 57 5f 54 43 6f 75 | 6e 74 65 64 50 74 72 2c | FW_TCou|ntedPtr,|
|000002c0| 20 77 68 69 63 68 20 69 | 73 20 61 74 20 74 68 65 | which i|s at the|
|000002d0| 20 72 6f 6f 74 20 6c 65 | 76 65 6c 20 6f 66 20 74 | root le|vel of t|
|000002e0| 68 65 20 55 74 69 6c 69 | 74 69 65 73 20 63 6f 6d |he Utili|ties com|
|000002f0| 70 6f 6e 65 6e 74 2e 0d | 55 74 69 6c 69 74 69 65 |ponent..|Utilitie|
|00000300| 73 20 63 6f 6d 70 6f 6e | 65 6e 74 20 63 6f 6e 63 |s compon|ent conc|
|00000310| 65 70 74 73 0d 54 68 65 | 20 55 74 69 6c 69 74 69 |epts.The| Utiliti|
|00000320| 65 73 20 63 6f 6d 70 6f | 6e 65 6e 74 20 70 72 6f |es compo|nent pro|
|00000330| 76 69 64 65 73 20 74 68 | 65 20 72 65 66 65 72 65 |vides th|e refere|
|00000340| 6e 63 65 2d 63 6f 75 6e | 74 65 64 20 70 6f 69 6e |nce-coun|ted poin|
|00000350| 74 65 72 20 74 65 6d 70 | 6c 61 74 65 20 63 6c 61 |ter temp|late cla|
|00000360| 73 73 2c 20 46 57 5f 54 | 43 6f 75 6e 74 65 64 50 |ss, FW_T|CountedP|
|00000370| 74 72 2c 20 74 6f 20 6d | 61 6b 65 20 69 74 20 65 |tr, to m|ake it e|
|00000380| 61 73 69 65 72 20 74 6f | 20 75 73 65 20 72 65 66 |asier to| use ref|
|00000390| 65 72 65 6e 63 65 20 63 | 6f 75 6e 74 69 6e 67 2e |erence c|ounting.|
|000003a0| 20 54 68 65 20 67 6f 61 | 6c 20 6f 66 20 72 65 66 | The goa|l of ref|
|000003b0| 65 72 65 6e 63 65 20 63 | 6f 75 6e 74 69 6e 67 20 |erence c|ounting |
|000003c0| 69 73 20 74 6f 20 6b 65 | 65 70 20 74 72 61 63 6b |is to ke|ep track|
|000003d0| 20 6f 66 20 68 6f 77 20 | 6d 61 6e 79 20 74 69 6d | of how |many tim|
|000003e0| 65 73 20 61 6e 20 6f 62 | 6a 65 63 74 20 69 73 20 |es an ob|ject is |
|000003f0| 72 65 66 65 72 65 6e 63 | 65 64 20 73 6f 20 61 6e |referenc|ed so an|
|00000400| 20 75 6e 72 65 66 65 72 | 65 6e 63 65 64 20 6f 62 | unrefer|enced ob|
|00000410| 6a 65 63 74 20 63 61 6e | 20 62 65 20 61 75 74 6f |ject can| be auto|
|00000420| 6d 61 74 69 63 61 6c 6c | 79 20 64 65 6c 65 74 65 |maticall|y delete|
|00000430| 64 2e 20 46 6f 72 20 6d | 6f 72 65 20 69 6e 66 6f |d. For m|ore info|
|00000440| 72 6d 61 74 69 6f 6e 20 | 6f 6e 20 72 65 66 65 72 |rmation |on refer|
|00000450| 65 6e 63 65 20 63 6f 75 | 6e 74 69 6e 67 2c 20 73 |ence cou|nting, s|
|00000460| 65 65 20 d2 55 73 69 6e | 67 20 46 57 5f 54 43 6f |ee .Usin|g FW_TCo|
|00000470| 75 6e 74 65 64 50 74 72 | d3 20 6f 6e 20 70 61 67 |untedPtr|. on pag|
|00000480| 65 20 33 2e 0d 41 64 64 | 69 74 69 6f 6e 61 6c 20 |e 3..Add|itional |
|00000490| 55 74 69 6c 69 74 69 65 | 73 20 63 6f 6d 70 6f 6e |Utilitie|s compon|
|000004a0| 65 6e 74 20 69 6e 74 65 | 72 66 61 63 65 73 0d 54 |ent inte|rfaces.T|
|000004b0| 68 65 72 65 20 61 72 65 | 20 6e 6f 20 61 64 64 69 |here are| no addi|
|000004c0| 74 69 6f 6e 61 6c 20 69 | 6e 74 65 72 66 61 63 65 |tional i|nterface|
|000004d0| 73 2e 0d 43 6f 6d 70 6f | 6e 65 6e 74 20 64 65 70 |s..Compo|nent dep|
|000004e0| 65 6e 64 65 6e 63 69 65 | 73 0d 52 65 66 65 72 65 |endencie|s.Refere|
|000004f0| 6e 63 65 2d 63 6f 75 6e | 74 65 64 20 70 6f 69 6e |nce-coun|ted poin|
|00000500| 74 65 72 73 20 61 72 65 | 20 70 61 72 74 69 63 75 |ters are| particu|
|00000510| 6c 61 72 6c 79 20 75 73 | 65 66 75 6c 20 77 68 65 |larly us|eful whe|
|00000520| 6e 20 74 68 65 20 70 6f | 69 6e 74 65 72 73 20 61 |n the po|inters a|
|00000530| 72 65 20 76 61 6c 75 65 | 2d 62 61 73 65 64 2c 20 |re value|-based, |
|00000540| 61 75 74 6f 6d 61 74 69 | 63 20 28 73 74 61 63 6b |automati|c (stack|
|00000550| 2d 62 61 73 65 64 29 20 | 76 61 72 69 61 62 6c 65 |-based) |variable|
|00000560| 73 2e 20 54 68 69 73 20 | 69 73 20 74 72 75 65 20 |s. This |is true |
|00000570| 62 65 63 61 75 73 65 20 | 4f 50 46 20 74 61 6b 65 |because |OPF take|
|00000580| 73 20 61 64 76 61 6e 74 | 61 67 65 20 6f 66 20 43 |s advant|age of C|
|00000590| 2b 2b 20 65 78 63 65 70 | 74 69 6f 6e 20 68 61 6e |++ excep|tion han|
|000005a0| 64 6c 69 6e 67 2e 20 49 | 66 20 61 20 72 65 66 65 |dling. I|f a refe|
|000005b0| 72 65 6e 63 65 2d 63 6f | 75 6e 74 65 64 20 70 6f |rence-co|unted po|
|000005c0| 69 6e 74 65 72 20 69 73 | 20 61 20 73 74 61 63 6b |inter is| a stack|
|000005d0| 2d 62 61 73 65 64 20 76 | 61 72 69 61 62 6c 65 20 |-based v|ariable |
|000005e0| 69 6e 20 61 20 67 69 76 | 65 6e 20 73 63 6f 70 65 |in a giv|en scope|
|000005f0| 2c 20 61 6e 64 20 61 6e | 20 65 78 63 65 70 74 69 |, and an| excepti|
|00000600| 6f 6e 20 69 73 20 74 68 | 72 6f 77 6e 20 6f 75 74 |on is th|rown out|
|00000610| 20 6f 66 20 74 68 65 20 | 73 63 6f 70 65 2c 20 74 | of the |scope, t|
|00000620| 68 65 6e 20 69 74 20 69 | 73 20 69 6d 70 6f 72 74 |hen it i|s import|
|00000630| 61 6e 74 20 74 68 61 74 | 20 74 68 65 20 64 65 73 |ant that| the des|
|00000640| 74 72 75 63 74 6f 72 20 | 6f 66 20 74 68 65 20 72 |tructor |of the r|
|00000650| 65 66 65 72 65 6e 63 65 | 2d 63 6f 75 6e 74 65 64 |eference|-counted|
|00000660| 20 70 6f 69 6e 74 65 72 | 20 69 73 20 65 78 65 63 | pointer| is exec|
|00000670| 75 74 65 64 2e 20 57 68 | 65 6e 20 4f 50 46 20 69 |uted. Wh|en OPF i|
|00000680| 73 20 62 75 69 6c 74 20 | 77 69 74 68 20 63 6f 6d |s built |with com|
|00000690| 70 69 6c 65 72 73 20 74 | 68 61 74 20 64 6f 20 6e |pilers t|hat do n|
|000006a0| 6f 74 20 79 65 74 20 70 | 72 6f 76 69 64 65 20 65 |ot yet p|rovide e|
|000006b0| 78 63 65 70 74 69 6f 6e | 20 68 61 6e 64 6c 69 6e |xception| handlin|
|000006c0| 67 2c 20 4f 50 46 20 75 | 73 65 73 20 74 68 65 20 |g, OPF u|ses the |
|000006d0| 4f 50 46 20 45 78 63 65 | 70 74 69 6f 6e 20 4c 69 |OPF Exce|ption Li|
|000006e0| 62 72 61 72 79 20 74 6f | 20 70 72 6f 76 69 64 65 |brary to| provide|
|000006f0| 20 65 78 63 65 70 74 69 | 6f 6e 20 68 61 6e 64 6c | excepti|on handl|
|00000700| 69 6e 67 20 65 6d 75 6c | 61 74 69 6f 6e 2e 20 46 |ing emul|ation. F|
|00000710| 57 5f 54 43 6f 75 6e 74 | 65 64 50 74 72 20 64 65 |W_TCount|edPtr de|
|00000720| 70 65 6e 64 73 20 75 70 | 6f 6e 20 65 78 63 65 70 |pends up|on excep|
|00000730| 74 69 6f 6e 20 68 61 6e | 64 6c 69 6e 67 2c 20 73 |tion han|dling, s|
|00000740| 6f 20 69 66 20 74 68 65 | 20 63 6f 6d 70 69 6c 65 |o if the| compile|
|00000750| 72 20 64 6f 65 73 20 6e | 6f 74 20 73 75 70 70 6f |r does n|ot suppo|
|00000760| 72 74 20 65 78 63 65 70 | 74 69 6f 6e 20 68 61 6e |rt excep|tion han|
|00000770| 64 6c 69 6e 67 2c 20 46 | 57 5f 54 43 6f 75 6e 74 |dling, F|W_TCount|
|00000780| 65 64 50 74 72 20 64 65 | 70 65 6e 64 73 20 75 70 |edPtr de|pends up|
|00000790| 6f 6e 20 74 68 65 20 42 | 45 4c 20 63 6f 6d 70 6f |on the B|EL compo|
|000007a0| 6e 65 6e 74 2c 20 46 57 | 45 78 63 4c 69 62 2e 20 |nent, FW|ExcLib. |
|000007b0| 57 68 65 6e 20 4f 50 46 | 20 69 73 20 62 75 69 6c |When OPF| is buil|
|000007c0| 74 20 77 69 74 68 20 63 | 6f 6d 70 69 6c 65 72 73 |t with c|ompilers|
|000007d0| 20 74 68 61 74 20 73 75 | 70 70 6f 72 74 20 65 78 | that su|pport ex|
|000007e0| 63 65 70 74 69 6f 6e 20 | 68 61 6e 64 6c 69 6e 67 |ception |handling|
|000007f0| 2c 20 46 57 5f 54 43 6f | 75 6e 74 65 64 50 74 72 |, FW_TCo|untedPtr|
|00000800| 20 69 73 20 65 6e 74 69 | 72 65 6c 79 20 73 65 6c | is enti|rely sel|
|00000810| 66 2d 63 6f 6e 74 61 69 | 6e 65 64 20 61 6e 64 20 |f-contai|ned and |
|00000820| 69 73 20 6e 6f 74 20 64 | 65 70 65 6e 64 65 6e 74 |is not d|ependent|
|00000830| 20 6f 6e 20 61 6e 79 20 | 6f 74 68 65 72 20 4f 50 | on any |other OP|
|00000840| 46 20 63 6f 6d 70 6f 6e | 65 6e 74 73 2e 0d 55 73 |F compon|ents..Us|
|00000850| 69 6e 67 20 74 68 65 20 | 55 74 69 6c 69 74 69 65 |ing the |Utilitie|
|00000860| 73 20 43 6f 6d 70 6f 6e | 65 6e 74 0d 55 73 65 20 |s Compon|ent.Use |
|00000870| 74 68 65 20 55 74 69 6c | 69 74 69 65 73 20 63 6f |the Util|ities co|
|00000880| 6d 70 6f 6e 65 6e 74 20 | 74 6f 20 6b 65 65 70 20 |mponent |to keep |
|00000890| 74 72 61 63 6b 20 6f 66 | 20 68 6f 77 20 6d 61 6e |track of| how man|
|000008a0| 79 20 74 69 6d 65 73 20 | 61 6e 20 6f 62 6a 65 63 |y times |an objec|
|000008b0| 74 20 69 73 20 72 65 66 | 65 72 65 6e 63 65 64 20 |t is ref|erenced |
|000008c0| 73 6f 20 61 6e 20 75 6e | 72 65 66 65 72 65 6e 63 |so an un|referenc|
|000008d0| 65 64 20 6f 62 6a 65 63 | 74 20 63 61 6e 20 62 65 |ed objec|t can be|
|000008e0| 20 61 75 74 6f 6d 61 74 | 69 63 61 6c 6c 79 20 64 | automat|ically d|
|000008f0| 65 6c 65 74 65 64 2e 0d | 53 75 62 63 6c 61 73 73 |eleted..|Subclass|
|00000900| 69 6e 67 20 77 69 74 68 | 69 6e 20 74 68 65 20 55 |ing with|in the U|
|00000910| 74 69 6c 69 74 69 65 73 | 20 63 6f 6d 70 6f 6e 65 |tilities| compone|
|00000920| 6e 74 0d 41 6c 74 68 6f | 75 67 68 20 79 6f 75 20 |nt.Altho|ugh you |
|00000930| 63 61 6e 20 73 75 62 63 | 6c 61 73 73 20 46 57 5f |can subc|lass FW_|
|00000940| 54 43 6f 75 6e 74 65 64 | 50 74 72 2c 20 74 68 61 |TCounted|Ptr, tha|
|00000950| 74 20 69 73 20 67 65 6e | 65 72 61 6c 6c 79 20 6e |t is gen|erally n|
|00000960| 6f 74 20 67 6f 6f 64 20 | 43 2b 2b 20 73 74 79 6c |ot good |C++ styl|
|00000970| 65 2e 20 49 6e 73 74 65 | 61 64 2c 20 79 6f 75 20 |e. Inste|ad, you |
|00000980| 77 69 6c 6c 20 74 79 70 | 69 63 61 6c 6c 79 20 62 |will typ|ically b|
|00000990| 65 20 69 6e 73 74 61 6e | 74 69 61 74 69 6e 67 20 |e instan|tiating |
|000009a0| 46 57 5f 54 43 6f 75 6e | 74 65 64 50 74 72 2e 0d |FW_TCoun|tedPtr..|
|000009b0| 49 6e 73 74 61 6e 74 69 | 61 74 69 6e 67 20 77 69 |Instanti|ating wi|
|000009c0| 74 68 69 6e 20 74 68 65 | 20 55 74 69 6c 69 74 69 |thin the| Utiliti|
|000009d0| 65 73 20 63 6f 6d 70 6f | 6e 65 6e 74 0d 59 6f 75 |es compo|nent.You|
|000009e0| 20 69 6e 73 74 61 6e 74 | 69 61 74 65 20 74 68 65 | instant|iate the|
|000009f0| 20 63 6c 61 73 73 20 46 | 57 5f 54 43 6f 75 6e 74 | class F|W_TCount|
|00000a00| 65 64 50 74 72 2e 0d 45 | 78 74 65 6e 64 69 6e 67 |edPtr..E|xtending|
|00000a10| 20 74 68 65 20 55 74 69 | 6c 69 74 69 65 73 20 63 | the Uti|lities c|
|00000a20| 6f 6d 70 6f 6e 65 6e 74 | 0d 49 74 20 69 73 20 67 |omponent|.It is g|
|00000a30| 65 6e 65 72 61 6c 6c 79 | 20 6e 6f 74 20 6e 65 63 |enerally| not nec|
|00000a40| 65 73 73 61 72 79 20 74 | 6f 20 65 78 74 65 6e 64 |essary t|o extend|
|00000a50| 20 74 68 65 20 55 74 69 | 6c 69 74 69 65 73 20 63 | the Uti|lities c|
|00000a60| 6f 6d 70 6f 6e 65 6e 74 | 2e 0d 43 61 74 63 68 69 |omponent|..Catchi|
|00000a70| 6e 67 20 55 74 69 6c 69 | 74 69 65 73 20 63 6f 6d |ng Utili|ties com|
|00000a80| 70 6f 6e 65 6e 74 20 65 | 78 63 65 70 74 69 6f 6e |ponent e|xception|
|00000a90| 73 0d 4d 65 74 68 6f 64 | 73 20 69 6e 20 74 68 65 |s.Method|s in the|
|00000aa0| 20 55 74 69 6c 69 74 69 | 65 73 20 63 6f 6d 70 6f | Utiliti|es compo|
|00000ab0| 6e 65 6e 74 20 64 6f 20 | 6e 6f 74 20 74 68 72 6f |nent do |not thro|
|00000ac0| 77 20 65 78 63 65 70 74 | 69 6f 6e 73 2e 0d 50 6c |w except|ions..Pl|
|00000ad0| 61 74 66 6f 72 6d 20 64 | 65 70 65 6e 64 65 6e 63 |atform d|ependenc|
|00000ae0| 69 65 73 20 69 6e 20 74 | 68 65 20 55 74 69 6c 69 |ies in t|he Utili|
|00000af0| 74 69 65 73 20 63 6f 6d | 70 6f 6e 65 6e 74 0d 54 |ties com|ponent.T|
|00000b00| 68 65 72 65 20 61 72 65 | 20 6e 6f 20 70 6c 61 74 |here are| no plat|
|00000b10| 66 6f 72 6d 2d 64 65 70 | 65 6e 64 65 6e 74 20 6d |form-dep|endent m|
|00000b20| 65 74 68 6f 64 73 20 69 | 6e 20 74 68 69 73 20 63 |ethods i|n this c|
|00000b30| 6f 6d 70 6f 6e 65 6e 74 | 2e 0d 46 57 5f 54 43 6f |omponent|..FW_TCo|
|00000b40| 75 6e 74 65 64 50 74 72 | 20 43 6c 61 73 73 0d 49 |untedPtr| Class.I|
|00000b50| 6e 74 72 6f 64 75 63 74 | 69 6f 6e 0d 46 57 5f 54 |ntroduct|ion.FW_T|
|00000b60| 43 6f 75 6e 74 65 64 50 | 74 72 20 70 72 6f 76 69 |CountedP|tr provi|
|00000b70| 64 65 73 20 61 20 6d 65 | 63 68 61 6e 69 73 6d 20 |des a me|chanism |
|00000b80| 66 6f 72 20 72 65 66 65 | 72 65 6e 63 65 2d 63 6f |for refe|rence-co|
|00000b90| 75 6e 74 65 64 20 70 6f | 69 6e 74 65 72 73 2e 20 |unted po|inters. |
|00000ba0| 41 20 72 65 66 65 72 65 | 6e 63 65 2d 63 6f 75 6e |A refere|nce-coun|
|00000bb0| 74 65 64 20 70 6f 69 6e | 74 65 72 20 70 6f 69 6e |ted poin|ter poin|
|00000bc0| 74 73 20 74 6f 20 61 6e | 20 6f 62 6a 65 63 74 20 |ts to an| object |
|00000bd0| 6f 66 20 61 20 73 70 65 | 63 69 66 69 63 20 74 79 |of a spe|cific ty|
|00000be0| 70 65 20 28 74 52 65 70 | 72 65 73 65 6e 74 61 74 |pe (tRep|resentat|
|00000bf0| 69 6f 6e 29 20 74 68 61 | 74 20 6d 75 73 74 20 63 |ion) tha|t must c|
|00000c00| 6f 6e 74 61 69 6e 20 61 | 6e 20 69 6e 74 65 72 6e |ontain a|n intern|
|00000c10| 61 6c 20 72 65 66 65 72 | 65 6e 63 65 20 63 6f 75 |al refer|ence cou|
|00000c20| 6e 74 2e 0d 55 73 65 20 | 46 57 5f 54 43 6f 75 6e |nt..Use |FW_TCoun|
|00000c30| 74 65 64 50 74 72 20 74 | 6f 20 61 64 6a 75 73 74 |tedPtr t|o adjust|
|00000c40| 20 74 68 65 20 72 65 66 | 65 72 65 6e 63 65 20 63 | the ref|erence c|
|00000c50| 6f 75 6e 74 20 69 6e 73 | 69 64 65 20 74 68 65 20 |ount ins|ide the |
|00000c60| 72 65 70 72 65 73 65 6e | 74 61 74 69 6f 6e 20 6f |represen|tation o|
|00000c70| 62 6a 65 63 74 2e 20 57 | 68 65 6e 20 61 20 72 65 |bject. W|hen a re|
|00000c80| 66 65 72 65 6e 63 65 2d | 63 6f 75 6e 74 65 64 20 |ference-|counted |
|00000c90| 70 6f 69 6e 74 65 72 20 | 69 73 3a 0d a5 09 63 6f |pointer |is:...co|
|00000ca0| 70 69 65 64 2c 20 74 68 | 65 20 72 65 66 65 72 65 |pied, th|e refere|
|00000cb0| 6e 63 65 20 63 6f 75 6e | 74 20 69 6e 20 74 68 65 |nce coun|t in the|
|00000cc0| 20 72 65 70 72 65 73 65 | 6e 74 61 74 69 6f 6e 20 | represe|ntation |
|00000cd0| 6f 62 6a 65 63 74 20 69 | 73 20 69 6e 63 72 65 6d |object i|s increm|
|00000ce0| 65 6e 74 65 64 2e 0d a5 | 09 64 65 6c 65 74 65 64 |ented...|.deleted|
|00000cf0| 2c 20 74 68 65 20 72 65 | 66 65 72 65 6e 63 65 20 |, the re|ference |
|00000d00| 63 6f 75 6e 74 20 69 6e | 20 74 68 65 20 72 65 70 |count in| the rep|
|00000d10| 72 65 73 65 6e 74 61 74 | 69 6f 6e 20 6f 62 6a 65 |resentat|ion obje|
|00000d20| 63 74 20 69 73 20 64 65 | 63 72 65 6d 65 6e 74 65 |ct is de|cremente|
|00000d30| 64 2e 0d 44 69 73 70 6f | 73 69 6e 67 20 6f 66 20 |d..Dispo|sing of |
|00000d40| 61 20 73 69 6e 67 6c 65 | 20 72 65 66 65 72 65 6e |a single| referen|
|00000d50| 63 65 2d 63 6f 75 6e 74 | 65 64 20 70 6f 69 6e 74 |ce-count|ed point|
|00000d60| 65 72 20 64 6f 65 73 20 | 6e 6f 74 20 64 65 6c 65 |er does |not dele|
|00000d70| 74 65 20 74 68 65 20 72 | 65 70 72 65 73 65 6e 74 |te the r|epresent|
|00000d80| 61 74 69 6f 6e 20 6f 62 | 6a 65 63 74 2c 20 69 66 |ation ob|ject, if|
|00000d90| 20 69 74 20 69 73 20 73 | 74 69 6c 6c 20 62 65 69 | it is s|till bei|
|00000da0| 6e 67 20 61 63 63 65 73 | 73 65 64 20 62 79 20 6f |ng acces|sed by o|
|00000db0| 74 68 65 72 20 72 65 66 | 65 72 65 6e 63 65 2d 63 |ther ref|erence-c|
|00000dc0| 6f 75 6e 74 65 64 20 70 | 6f 69 6e 74 65 72 73 2e |ounted p|ointers.|
|00000dd0| 20 57 68 65 6e 20 74 68 | 65 20 72 65 66 65 72 65 | When th|e refere|
|00000de0| 6e 63 65 20 63 6f 75 6e | 74 20 67 6f 65 73 20 74 |nce coun|t goes t|
|00000df0| 6f 20 7a 65 72 6f 2c 20 | 74 68 65 20 72 65 70 72 |o zero, |the repr|
|00000e00| 65 73 65 6e 74 61 74 69 | 6f 6e 20 6f 62 6a 65 63 |esentati|on objec|
|00000e10| 74 20 69 73 20 64 65 6c | 65 74 65 64 2e 0d 48 65 |t is del|eted..He|
|00000e20| 61 64 65 72 20 66 69 6c | 65 0d 46 57 43 6f 75 50 |ader fil|e.FWCouP|
|00000e30| 74 72 2e 68 0d 48 65 72 | 69 74 61 67 65 0d 46 57 |tr.h.Her|itage.FW|
|00000e40| 5f 54 43 6f 75 6e 74 65 | 64 50 74 72 0d 55 73 69 |_TCounte|dPtr.Usi|
|00000e50| 6e 67 20 46 57 5f 54 43 | 6f 75 6e 74 65 64 50 74 |ng FW_TC|ountedPt|
|00000e60| 72 0d 55 73 65 20 46 57 | 5f 54 43 6f 75 6e 74 65 |r.Use FW|_TCounte|
|00000e70| 64 50 74 72 20 66 6f 72 | 20 63 6c 61 73 73 65 73 |dPtr for| classes|
|00000e80| 20 77 68 6f 73 65 20 69 | 6e 73 74 61 6e 63 65 73 | whose i|nstances|
|00000e90| 20 61 72 65 20 6f 66 74 | 65 6e 20 63 6f 70 69 65 | are oft|en copie|
|00000ea0| 64 20 74 68 72 6f 75 67 | 68 20 61 73 73 69 67 6e |d throug|h assign|
|00000eb0| 6d 65 6e 74 20 6f 72 20 | 70 61 72 61 6d 65 74 65 |ment or |paramete|
|00000ec0| 72 20 70 61 73 73 69 6e | 67 2c 20 70 61 72 74 69 |r passin|g, parti|
|00000ed0| 63 75 6c 61 72 6c 79 20 | 69 66 20 74 68 65 20 6f |cularly |if the o|
|00000ee0| 62 6a 65 63 74 73 20 61 | 72 65 20 73 6f 20 6c 61 |bjects a|re so la|
|00000ef0| 72 67 65 20 6f 72 20 63 | 6f 6d 70 6c 65 78 20 74 |rge or c|omplex t|
|00000f00| 68 61 74 20 63 6f 70 79 | 69 6e 67 20 69 73 20 65 |hat copy|ing is e|
|00000f10| 78 70 65 6e 73 69 76 65 | 2e 20 49 6e 20 61 64 64 |xpensive|. In add|
|00000f20| 69 74 69 6f 6e 2c 20 75 | 73 65 20 72 65 66 65 72 |ition, u|se refer|
|00000f30| 65 6e 63 65 2d 63 6f 75 | 6e 74 65 64 20 70 6f 69 |ence-cou|nted poi|
|00000f40| 6e 74 65 72 73 20 77 68 | 65 6e 20 6d 75 6c 74 69 |nters wh|en multi|
|00000f50| 70 6c 65 20 6c 6f 67 69 | 63 61 6c 20 63 6f 70 69 |ple logi|cal copi|
|00000f60| 65 73 20 6f 66 20 61 6e | 20 6f 62 6a 65 63 74 20 |es of an| object |
|00000f70| 6d 69 67 68 74 20 65 78 | 69 73 74 2c 20 74 68 6f |might ex|ist, tho|
|00000f80| 75 67 68 20 74 68 65 20 | 64 61 74 61 20 69 74 73 |ugh the |data its|
|00000f90| 65 6c 66 20 63 61 6e 6e | 6f 74 20 62 65 20 63 6f |elf cann|ot be co|
|00000fa0| 70 69 65 64 2e 0d 4f 76 | 65 72 76 69 65 77 20 6f |pied..Ov|erview o|
|00000fb0| 66 20 72 65 66 65 72 65 | 6e 63 65 20 63 6f 75 6e |f refere|nce coun|
|00000fc0| 74 69 6e 67 0d 53 75 70 | 70 6f 73 65 20 79 6f 75 |ting.Sup|pose you|
|00000fd0| 20 61 72 65 20 64 65 76 | 65 6c 6f 70 69 6e 67 20 | are dev|eloping |
|00000fe0| 61 20 70 61 72 74 20 77 | 68 65 72 65 20 79 6f 75 |a part w|here you|
|00000ff0| 20 77 69 6c 6c 20 68 61 | 76 65 20 6d 61 6e 79 20 | will ha|ve many |
|00001000| 73 74 72 69 6e 67 20 6f | 62 6a 65 63 74 73 20 77 |string o|bjects w|
|00001010| 68 69 63 68 20 6d 69 67 | 68 74 20 63 6f 6e 74 61 |hich mig|ht conta|
|00001020| 69 6e 20 61 20 73 6d 61 | 6c 6c 20 73 65 74 20 6f |in a sma|ll set o|
|00001030| 66 20 73 74 72 69 6e 67 | 20 76 61 6c 75 65 73 2e |f string| values.|
|00001040| 20 41 73 73 75 6d 65 20 | 79 6f 75 20 77 61 6e 74 | Assume |you want|
|00001050| 20 74 6f 20 63 72 65 61 | 74 65 20 61 20 73 74 72 | to crea|te a str|
|00001060| 69 6e 67 20 63 6c 61 73 | 73 2c 20 43 53 74 72 69 |ing clas|s, CStri|
|00001070| 6e 67 2c 20 74 68 61 74 | 20 63 61 6e 20 6d 69 6e |ng, that| can min|
|00001080| 69 6d 69 7a 65 20 73 74 | 6f 72 61 67 65 20 72 65 |imize st|orage re|
|00001090| 71 75 69 72 65 6d 65 6e | 74 73 20 62 79 20 73 68 |quiremen|ts by sh|
|000010a0| 61 72 69 6e 67 20 74 68 | 65 20 72 65 70 72 65 73 |aring th|e repres|
|000010b0| 65 6e 74 61 74 69 6f 6e | 20 66 6f 72 20 74 68 65 |entation| for the|
|000010c0| 20 73 74 72 69 6e 67 20 | 64 61 74 61 20 77 68 65 | string |data whe|
|000010d0| 6e 20 74 77 6f 20 43 53 | 74 72 69 6e 67 20 6f 62 |n two CS|tring ob|
|000010e0| 6a 65 63 74 73 20 63 6f | 6e 74 61 69 6e 20 74 68 |jects co|ntain th|
|000010f0| 65 20 73 61 6d 65 20 73 | 74 72 69 6e 67 20 64 61 |e same s|tring da|
|00001100| 74 61 2e 20 54 68 65 20 | 72 65 70 72 65 73 65 6e |ta. The |represen|
|00001110| 74 61 74 69 6f 6e 20 69 | 73 20 69 74 73 65 6c 66 |tation i|s itself|
|00001120| 20 61 6e 20 6f 62 6a 65 | 63 74 2c 20 6d 61 6e 61 | an obje|ct, mana|
|00001130| 67 69 6e 67 20 74 68 65 | 20 73 68 61 72 65 64 20 |ging the| shared |
|00001140| 64 61 74 61 20 61 6e 64 | 20 61 6e 20 61 73 73 6f |data and| an asso|
|00001150| 63 69 61 74 65 64 20 72 | 65 66 65 72 65 6e 63 65 |ciated r|eference|
|00001160| 20 63 6f 75 6e 74 2e 20 | 59 6f 75 20 77 69 6c 6c | count. |You will|
|00001170| 20 6e 65 65 64 20 74 6f | 20 64 65 73 69 67 6e 20 | need to| design |
|00001180| 74 77 6f 20 63 6c 61 73 | 73 65 73 3a 20 43 53 74 |two clas|ses: CSt|
|00001190| 72 69 6e 67 20 61 6e 64 | 20 43 53 74 72 69 6e 67 |ring and| CString|
|000011a0| 52 65 70 2e 0d 49 6e 20 | 74 68 65 20 63 6c 61 73 |Rep..In |the clas|
|000011b0| 73 20 43 53 74 72 69 6e | 67 2c 20 69 6d 70 6c 65 |s CStrin|g, imple|
|000011c0| 6d 65 6e 74 20 74 68 65 | 20 61 73 73 69 67 6e 6d |ment the| assignm|
|000011d0| 65 6e 74 20 6f 70 65 72 | 61 74 6f 72 20 28 61 6d |ent oper|ator (am|
|000011e0| 6f 6e 67 20 6f 74 68 65 | 72 73 29 20 73 75 63 68 |ong othe|rs) such|
|000011f0| 20 74 68 61 74 20 61 73 | 73 69 67 6e 69 6e 67 20 | that as|signing |
|00001200| 6f 6e 65 20 73 74 72 69 | 6e 67 20 74 6f 20 61 6e |one stri|ng to an|
|00001210| 6f 74 68 65 72 20 73 74 | 72 69 6e 67 20 63 61 75 |other st|ring cau|
|00001220| 73 65 73 20 73 68 61 72 | 69 6e 67 20 6f 66 20 74 |ses shar|ing of t|
|00001230| 68 65 20 72 65 70 72 65 | 73 65 6e 74 61 74 69 6f |he repre|sentatio|
|00001240| 6e 2e 0d 0d 63 6c 61 73 | 73 20 43 53 74 72 69 6e |n...clas|s CStrin|
|00001250| 67 0d 7b 0d 70 75 62 6c | 69 63 3a 0d 6f 70 65 72 |g.{.publ|ic:.oper|
|00001260| 61 74 6f 72 3d 28 63 6f | 6e 73 74 20 43 53 74 72 |ator=(co|nst CStr|
|00001270| 69 6e 67 26 20 6f 74 68 | 65 72 29 3b 0d c9 0d 70 |ing& oth|er);...p|
|00001280| 72 69 76 61 74 65 3a 0d | 43 53 74 72 69 6e 67 52 |rivate:.|CStringR|
|00001290| 65 70 20 2a 66 52 65 70 | 3b 09 09 09 09 09 09 09 |ep *fRep|;.......|
|000012a0| 09 2f 2f 20 70 6f 69 6e | 74 65 72 20 74 6f 20 43 |.// poin|ter to C|
|000012b0| 53 74 72 69 6e 67 52 65 | 70 0d 7d 3b 0d 0d 53 69 |StringRe|p.};..Si|
|000012c0| 6e 63 65 20 74 68 65 20 | 6f 62 6a 65 63 74 20 69 |nce the |object i|
|000012d0| 73 20 73 68 61 72 65 64 | 2c 20 61 20 72 65 66 65 |s shared|, a refe|
|000012e0| 72 65 6e 63 65 20 63 6f | 75 6e 74 20 66 69 65 6c |rence co|unt fiel|
|000012f0| 64 20 69 6e 20 74 68 65 | 20 63 6c 61 73 73 20 43 |d in the| class C|
|00001300| 53 74 72 69 6e 67 52 65 | 70 20 69 73 20 6e 65 65 |StringRe|p is nee|
|00001310| 64 65 64 20 74 6f 20 62 | 65 20 73 75 72 65 20 74 |ded to b|e sure t|
|00001320| 68 61 74 20 74 68 65 20 | 43 53 74 72 69 6e 67 52 |hat the |CStringR|
|00001330| 65 70 20 6f 62 6a 65 63 | 74 20 69 73 20 6f 6e 6c |ep objec|t is onl|
|00001340| 79 20 64 65 6c 65 74 65 | 64 20 77 68 65 6e 20 74 |y delete|d when t|
|00001350| 68 65 72 65 20 61 72 65 | 20 6e 6f 20 6d 6f 72 65 |here are| no more|
|00001360| 20 43 53 74 72 69 6e 67 | 20 6f 62 6a 65 63 74 73 | CString| objects|
|00001370| 20 75 73 69 6e 67 20 69 | 74 2e 0d 0d 63 6c 61 73 | using i|t...clas|
|00001380| 73 20 43 53 74 72 69 6e | 67 52 65 70 0d 7b 0d 70 |s CStrin|gRep.{.p|
|00001390| 75 62 6c 69 63 3a 0d 6c | 6f 6e 67 20 4c 65 6e 67 |ublic:.l|ong Leng|
|000013a0| 74 68 28 29 3b 0d c9 0d | 70 72 69 76 61 74 65 3a |th();...|private:|
|000013b0| 0d 63 68 61 72 20 2a 66 | 52 65 70 3b 09 09 09 09 |.char *f|Rep;....|
|000013c0| 09 09 09 09 2f 2f 20 70 | 6f 69 6e 74 65 72 20 74 |....// p|ointer t|
|000013d0| 6f 20 61 20 73 74 72 69 | 6e 67 0d 69 6e 74 20 66 |o a stri|ng.int f|
|000013e0| 43 6f 75 6e 74 3b 09 09 | 09 09 09 09 09 09 2f 2f |Count;..|......//|
|000013f0| 20 72 65 66 65 72 65 6e | 63 65 20 63 6f 75 6e 74 | referen|ce count|
|00001400| 20 66 69 65 6c 64 0d 7d | 3b 0d 0d 46 69 67 75 72 | field.}|;..Figur|
|00001410| 65 20 31 2d 31 20 6f 6e | 20 70 61 67 65 20 35 20 |e 1-1 on| page 5 |
|00001420| 69 6c 6c 75 73 74 72 61 | 74 65 73 20 74 68 65 20 |illustra|tes the |
|00001430| 73 74 61 74 65 20 6f 66 | 20 74 77 6f 20 73 74 72 |state of| two str|
|00001440| 69 6e 67 20 6f 62 6a 65 | 63 74 73 20 61 20 61 6e |ing obje|cts a an|
|00001450| 64 20 62 20 61 66 74 65 | 72 20 74 68 65 20 61 73 |d b afte|r the as|
|00001460| 73 69 67 6e 6d 65 6e 74 | 20 62 20 3d 20 61 2e 20 |signment| b = a. |
|00001470| 57 68 69 6c 65 20 61 20 | 61 6e 64 20 62 20 6e 61 |While a |and b na|
|00001480| 6d 65 20 73 65 70 61 72 | 61 74 65 20 43 53 74 72 |me separ|ate CStr|
|00001490| 69 6e 67 20 6f 62 6a 65 | 63 74 73 2c 20 62 6f 74 |ing obje|cts, bot|
|000014a0| 68 20 6f 62 6a 65 63 74 | 73 20 70 6f 69 6e 74 20 |h object|s point |
|000014b0| 74 6f 20 74 68 65 20 73 | 61 6d 65 20 43 53 74 72 |to the s|ame CStr|
|000014c0| 69 6e 67 52 65 70 20 6f | 62 6a 65 63 74 2e 0d 46 |ingRep o|bject..F|
|000014d0| 69 67 75 72 65 20 31 15 | 31 20 48 6f 77 20 74 6f |igure 1.|1 How to|
|000014e0| 20 68 61 6e 64 6c 65 20 | 73 74 72 69 6e 67 73 20 | handle |strings |
|000014f0| 77 69 74 68 20 72 65 66 | 65 72 65 6e 63 65 20 63 |with ref|erence c|
|00001500| 6f 75 6e 74 69 6e 67 0d | 41 64 64 69 6e 67 20 72 |ounting.|Adding r|
|00001510| 65 66 65 72 65 6e 63 65 | 2d 63 6f 75 6e 74 65 64 |eference|-counted|
|00001520| 20 70 6f 69 6e 74 65 72 | 73 0d 46 57 5f 54 43 6f | pointer|s.FW_TCo|
|00001530| 75 6e 74 65 64 50 74 72 | 20 6d 61 6b 65 73 20 69 |untedPtr| makes i|
|00001540| 74 20 72 65 6c 61 74 69 | 76 65 6c 79 20 65 61 73 |t relati|vely eas|
|00001550| 79 20 74 6f 20 61 64 64 | 20 72 65 66 65 72 65 6e |y to add| referen|
|00001560| 63 65 20 63 6f 75 6e 74 | 69 6e 67 20 74 6f 20 61 |ce count|ing to a|
|00001570| 20 64 65 73 69 67 6e 2e | 20 59 6f 75 20 63 61 6e | design.| You can|
|00001580| 20 6d 6f 64 69 66 79 20 | 74 68 65 20 61 62 6f 76 | modify |the abov|
|00001590| 65 20 64 65 73 69 67 6e | 20 74 6f 20 75 73 65 20 |e design| to use |
|000015a0| 46 57 5f 54 43 6f 75 6e | 74 65 64 50 74 72 20 76 |FW_TCoun|tedPtr v|
|000015b0| 65 72 79 20 65 61 73 69 | 6c 79 2c 20 62 79 20 64 |ery easi|ly, by d|
|000015c0| 6f 69 6e 67 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |oing the| followi|
|000015d0| 6e 67 20 74 77 6f 20 74 | 68 69 6e 67 73 3a 0d 31 |ng two t|hings:.1|
|000015e0| 29 20 49 6d 70 6c 65 6d | 65 6e 74 20 74 68 65 20 |) Implem|ent the |
|000015f0| 6d 65 74 68 6f 64 73 20 | 49 6e 63 72 65 6d 65 6e |methods |Incremen|
|00001600| 74 52 65 66 65 72 65 6e | 63 65 43 6f 75 6e 74 20 |tReferen|ceCount |
|00001610| 61 6e 64 20 44 65 63 72 | 65 6d 65 6e 74 52 65 66 |and Decr|ementRef|
|00001620| 65 72 65 6e 63 65 43 6f | 75 6e 74 20 69 6e 20 74 |erenceCo|unt in t|
|00001630| 68 65 20 63 6c 61 73 73 | 20 43 53 74 72 69 6e 67 |he class| CString|
|00001640| 52 65 70 2e 20 54 68 69 | 73 20 69 73 20 74 68 65 |Rep. Thi|s is the|
|00001650| 20 69 6e 74 65 72 66 61 | 63 65 20 46 57 5f 54 43 | interfa|ce FW_TC|
|00001660| 6f 75 6e 74 65 64 50 74 | 72 20 75 73 65 73 20 74 |ountedPt|r uses t|
|00001670| 6f 20 61 64 6a 75 73 74 | 20 74 68 65 20 72 65 66 |o adjust| the ref|
|00001680| 65 72 65 6e 63 65 20 63 | 6f 75 6e 74 20 69 6e 73 |erence c|ount ins|
|00001690| 69 64 65 20 74 68 65 20 | 72 65 70 72 65 73 65 6e |ide the |represen|
|000016a0| 74 61 74 69 6f 6e 20 6f | 62 6a 65 63 74 2e 0d 32 |tation o|bject..2|
|000016b0| 29 20 55 73 65 20 74 68 | 65 20 74 65 6d 70 6c 61 |) Use th|e templa|
|000016c0| 74 65 20 63 6c 61 73 73 | 20 46 57 5f 54 43 6f 75 |te class| FW_TCou|
|000016d0| 6e 74 65 64 50 74 72 3c | 43 53 74 72 69 6e 67 52 |ntedPtr<|CStringR|
|000016e0| 65 70 3e 20 69 6e 20 70 | 6c 61 63 65 20 6f 66 20 |ep> in p|lace of |
|000016f0| 74 68 65 20 63 6c 61 73 | 73 20 43 53 74 72 69 6e |the clas|s CStrin|
|00001700| 67 2e 20 54 68 69 73 20 | 6d 69 67 68 74 20 62 65 |g. This |might be|
|00001710| 20 64 6f 6e 65 20 75 73 | 69 6e 67 20 61 20 74 79 | done us|ing a ty|
|00001720| 70 65 64 65 66 3a 0d 74 | 79 70 65 64 65 66 20 43 |pedef:.t|ypedef C|
|00001730| 53 74 72 69 6e 67 20 46 | 57 5f 54 43 6f 75 6e 74 |String F|W_TCount|
|00001740| 65 64 50 74 72 3c 43 53 | 74 72 69 6e 67 52 65 70 |edPtr<CS|tringRep|
|00001750| 3e 3b 0d 4f 62 6a 65 63 | 74 73 20 6f 66 20 46 57 |>;.Objec|ts of FW|
|00001760| 5f 54 43 6f 75 6e 74 65 | 64 50 74 72 3c 54 3e 20 |_TCounte|dPtr<T> |
|00001770| 62 65 68 61 76 65 20 76 | 65 72 79 20 6d 75 63 68 |behave v|ery much|
|00001780| 20 6c 69 6b 65 20 70 6f | 69 6e 74 65 72 73 20 74 | like po|inters t|
|00001790| 6f 20 54 2e 0d 49 6e 20 | 67 65 6e 65 72 61 6c 2c |o T..In |general,|
|000017a0| 20 69 66 20 79 6f 75 20 | 77 61 6e 74 20 74 6f 20 | if you |want to |
|000017b0| 61 64 64 20 72 65 66 65 | 72 65 6e 63 65 20 63 6f |add refe|rence co|
|000017c0| 75 6e 74 69 6e 67 20 74 | 6f 20 79 6f 75 72 20 6f |unting t|o your o|
|000017d0| 77 6e 20 64 61 74 61 20 | 73 74 72 75 63 74 75 72 |wn data |structur|
|000017e0| 65 73 2c 20 79 6f 75 20 | 77 69 6c 6c 20 6e 65 65 |es, you |will nee|
|000017f0| 64 20 74 6f 20 64 65 73 | 69 67 6e 20 61 20 72 65 |d to des|ign a re|
|00001800| 70 72 65 73 65 6e 74 61 | 74 69 6f 6e 20 63 6c 61 |presenta|tion cla|
|00001810| 73 73 20 43 59 6f 75 72 | 43 6c 61 73 73 52 65 70 |ss CYour|ClassRep|
|00001820| 20 61 6e 64 20 74 68 65 | 6e 20 69 6e 73 74 61 6e | and the|n instan|
|00001830| 74 69 61 74 65 20 46 57 | 5f 54 43 6f 75 6e 74 65 |tiate FW|_TCounte|
|00001840| 64 50 74 72 3c 43 59 6f | 75 72 d0 43 6c 61 73 73 |dPtr<CYo|ur.Class|
|00001850| 52 65 70 3e 20 66 6f 72 | 20 79 6f 75 72 20 63 6c |Rep> for| your cl|
|00001860| 61 73 73 2e 20 57 68 65 | 6e 65 76 65 72 20 61 20 |ass. Whe|never a |
|00001870| 72 65 66 65 72 65 6e 63 | 65 2d 63 6f 75 6e 74 65 |referenc|e-counte|
|00001880| 64 20 70 6f 69 6e 74 65 | 72 20 63 6c 61 73 73 20 |d pointe|r class |
|00001890| 69 73 20 75 73 65 64 2c | 20 74 68 65 72 65 20 6d |is used,| there m|
|000018a0| 75 73 74 20 62 65 20 61 | 20 63 6f 72 72 65 73 70 |ust be a| corresp|
|000018b0| 6f 6e 64 69 6e 67 20 72 | 65 70 72 65 73 65 6e 74 |onding r|epresent|
|000018c0| 61 74 69 6f 6e 20 63 6c | 61 73 73 2e 20 54 68 69 |ation cl|ass. Thi|
|000018d0| 73 20 72 65 70 72 65 73 | 65 6e 74 61 74 69 6f 6e |s repres|entation|
|000018e0| 20 63 6c 61 73 73 20 69 | 73 20 67 65 6e 65 72 61 | class i|s genera|
|000018f0| 6c 6c 79 20 61 6e 20 69 | 6d 70 6c 65 6d 65 6e 74 |lly an i|mplement|
|00001900| 61 74 69 6f 6e 20 64 65 | 74 61 69 6c 2e 20 46 57 |ation de|tail. FW|
|00001910| 5f 54 43 6f 75 6e 74 65 | 64 50 74 72 20 6d 61 6b |_TCounte|dPtr mak|
|00001920| 65 73 20 6e 6f 20 65 66 | 66 6f 72 74 20 74 6f 20 |es no ef|fort to |
|00001930| 68 69 64 65 20 74 68 65 | 73 65 20 69 6d 70 6c 65 |hide the|se imple|
|00001940| 6d 65 6e 74 61 74 69 6f | 6e 20 64 65 74 61 69 6c |mentatio|n detail|
|00001950| 73 2e 0d 49 64 69 6f 6d | 73 20 66 6f 72 20 75 73 |s..Idiom|s for us|
|00001960| 69 6e 67 20 72 65 66 65 | 72 65 6e 63 65 2d 63 6f |ing refe|rence-co|
|00001970| 75 6e 74 65 64 20 70 6f | 69 6e 74 65 72 73 0d 49 |unted po|inters.I|
|00001980| 74 20 69 73 20 6d 75 63 | 68 20 6d 6f 72 65 20 63 |t is muc|h more c|
|00001990| 6f 6e 76 65 6e 69 65 6e | 74 20 74 6f 20 74 79 70 |onvenien|t to typ|
|000019a0| 65 20 61 6e 64 20 72 65 | 61 64 20 74 68 65 20 6e |e and re|ad the n|
|000019b0| 61 6d 65 20 43 53 74 72 | 69 6e 67 20 74 68 61 6e |ame CStr|ing than|
|000019c0| 20 69 74 20 69 73 20 74 | 6f 20 74 79 70 65 20 61 | it is t|o type a|
|000019d0| 6e 64 20 72 65 61 64 20 | 74 68 65 20 6e 61 6d 65 |nd read |the name|
|000019e0| 20 46 57 5f 54 43 6f 75 | 6e 74 65 64 50 74 72 3c | FW_TCou|ntedPtr<|
|000019f0| 43 53 74 72 69 6e 67 d0 | 52 65 70 3e 2e 20 46 6f |CString.|Rep>. Fo|
|00001a00| 72 20 74 68 65 73 65 20 | 72 65 61 73 6f 6e 73 2c |r these |reasons,|
|00001a10| 20 69 74 20 69 73 20 67 | 65 6e 65 72 61 6c 6c 79 | it is g|enerally|
|00001a20| 20 70 72 65 66 65 72 61 | 62 6c 65 20 74 6f 20 65 | prefera|ble to e|
|00001a30| 6e 63 61 70 73 75 6c 61 | 74 65 20 74 68 65 20 72 |ncapsula|te the r|
|00001a40| 65 66 65 72 65 6e 63 65 | 2d 63 6f 75 6e 74 65 64 |eference|-counted|
|00001a50| 20 70 6f 69 6e 74 65 72 | 20 77 69 74 68 69 6e 20 | pointer| within |
|00001a60| 61 6e 6f 74 68 65 72 20 | 63 6c 61 73 73 2e 20 59 |another |class. Y|
|00001a70| 6f 75 20 63 61 6e 20 73 | 75 62 63 6c 61 73 73 20 |ou can s|ubclass |
|00001a80| 46 57 5f 54 43 6f 75 6e | 74 65 64 50 74 72 2c 20 |FW_TCoun|tedPtr, |
|00001a90| 62 75 74 20 74 68 61 74 | 20 69 73 20 67 65 6e 65 |but that| is gene|
|00001aa0| 72 61 6c 6c 79 20 6e 6f | 74 20 67 6f 6f 64 20 43 |rally no|t good C|
|00001ab0| 2b 2b 20 73 74 79 6c 65 | 2e 20 49 6e 73 74 65 61 |++ style|. Instea|
|00001ac0| 64 2c 20 63 72 65 61 74 | 65 20 61 20 6e 65 77 20 |d, creat|e a new |
|00001ad0| 63 6c 61 73 73 20 74 68 | 61 74 20 63 6f 6e 74 61 |class th|at conta|
|00001ae0| 69 6e 73 20 61 20 46 57 | 5f 54 43 6f 75 6e 74 65 |ins a FW|_TCounte|
|00001af0| 64 50 74 72 3c 54 3e 20 | 66 69 65 6c 64 2e 20 46 |dPtr<T> |field. F|
|00001b00| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 79 6f 75 20 |or examp|le, you |
|00001b10| 63 61 6e 20 6d 6f 64 69 | 66 79 20 43 53 74 72 69 |can modi|fy CStri|
|00001b20| 6e 67 20 61 73 20 66 6f | 6c 6c 6f 77 73 3a 0d 0d |ng as fo|llows:..|
|00001b30| 63 6c 61 73 73 20 43 53 | 74 72 69 6e 67 0d 7b 0d |class CS|tring.{.|
|00001b40| 70 75 62 6c 69 63 3a 0d | 6c 6f 6e 67 20 4c 65 6e |public:.|long Len|
|00001b50| 67 74 68 28 29 20 7b 66 | 52 65 70 2d 3e 4c 65 6e |gth() {f|Rep->Len|
|00001b60| 67 74 68 28 29 3b 7d 0d | c9 0d 70 72 69 76 61 74 |gth();}.|..privat|
|00001b70| 65 3a 0d 46 57 5f 54 43 | 6f 75 6e 74 65 64 50 74 |e:.FW_TC|ountedPt|
|00001b80| 72 3c 43 53 74 72 69 6e | 67 52 65 70 3e 20 66 52 |r<CStrin|gRep> fR|
|00001b90| 65 70 3b 0d 7d 3b 0d 0d | 57 69 74 68 20 74 68 69 |ep;.};..|With thi|
|00001ba0| 73 20 69 64 69 6f 6d 2c | 20 79 6f 75 20 6e 65 65 |s idiom,| you nee|
|00001bb0| 64 20 6f 6e 6c 79 20 6c | 6f 6f 6b 20 61 74 20 74 |d only l|ook at t|
|00001bc0| 68 65 20 43 53 74 72 69 | 6e 67 20 63 6c 61 73 73 |he CStri|ng class|
|00001bd0| 2c 20 77 68 69 63 68 20 | 65 78 70 6c 69 63 69 74 |, which |explicit|
|00001be0| 6c 79 20 72 65 69 6d 70 | 6c 65 6d 65 6e 74 73 20 |ly reimp|lements |
|00001bf0| 61 6c 6c 20 74 68 65 20 | 66 75 6e 63 74 69 6f 6e |all the |function|
|00001c00| 73 20 6f 66 20 43 53 74 | 72 69 6e 67 52 65 70 20 |s of CSt|ringRep |
|00001c10| 77 69 74 68 20 69 6e 6c | 69 6e 65 20 66 75 6e 63 |with inl|ine func|
|00001c20| 74 69 6f 6e 73 2e 0d 44 | 65 72 65 66 65 72 65 6e |tions..D|ereferen|
|00001c30| 63 69 6e 67 0d 4f 76 65 | 72 6c 6f 61 64 69 6e 67 |cing.Ove|rloading|
|00001c40| 20 74 68 65 20 64 65 72 | 65 66 65 72 65 6e 63 69 | the der|eferenci|
|00001c50| 6e 67 20 6f 70 65 72 61 | 74 6f 72 2d 3e 28 29 20 |ng opera|tor->() |
|00001c60| 69 73 20 70 72 69 6d 61 | 72 69 6c 79 20 75 73 65 |is prima|rily use|
|00001c70| 66 75 6c 20 66 6f 72 20 | 63 72 65 61 74 69 6e 67 |ful for |creating|
|00001c80| 20 73 6d 61 72 74 20 70 | 6f 69 6e 74 65 72 73 2c | smart p|ointers,|
|00001c90| 20 74 68 61 74 20 69 73 | 2c 20 6f 62 6a 65 63 74 | that is|, object|
|00001ca0| 73 20 74 68 61 74 20 61 | 63 74 20 6c 69 6b 65 20 |s that a|ct like |
|00001cb0| 70 6f 69 6e 74 65 72 73 | 2c 20 61 6e 64 20 69 6e |pointers|, and in|
|00001cc0| 20 61 64 64 69 74 69 6f | 6e 2c 20 70 65 72 66 6f | additio|n, perfo|
|00001cd0| 72 6d 20 73 6f 6d 65 20 | 61 63 74 69 6f 6e 20 77 |rm some |action w|
|00001ce0| 68 65 6e 65 76 65 72 20 | 61 6e 6f 74 68 65 72 20 |henever |another |
|00001cf0| 6f 62 6a 65 63 74 20 69 | 73 20 61 63 63 65 73 73 |object i|s access|
|00001d00| 65 64 20 74 68 72 6f 75 | 67 68 20 74 68 65 6d 2e |ed throu|gh them.|
|00001d10| 20 54 68 65 20 64 69 66 | 66 65 72 65 6e 63 65 20 | The dif|ference |
|00001d20| 62 65 74 77 65 65 6e 20 | 61 20 73 6d 61 72 74 20 |between |a smart |
|00001d30| 70 6f 69 6e 74 65 72 20 | 61 6e 64 20 61 6e 20 6f |pointer |and an o|
|00001d40| 72 64 69 6e 61 72 79 20 | 70 6f 69 6e 74 65 72 20 |rdinary |pointer |
|00001d50| 69 73 20 74 68 61 74 20 | 61 20 73 6d 61 72 74 20 |is that |a smart |
|00001d60| 70 6f 69 6e 74 65 72 20 | 69 73 20 75 73 65 64 20 |pointer |is used |
|00001d70| 6f 6e 20 61 6e 20 6f 62 | 6a 65 63 74 20 6f 66 20 |on an ob|ject of |
|00001d80| 61 20 63 6c 61 73 73 20 | 61 6e 64 20 69 73 20 6e |a class |and is n|
|00001d90| 6f 74 20 61 20 70 6f 69 | 6e 74 65 72 20 74 6f 20 |ot a poi|nter to |
|00001da0| 61 6e 20 6f 62 6a 65 63 | 74 2e 20 46 6f 72 20 65 |an objec|t. For e|
|00001db0| 78 61 6d 70 6c 65 2c 20 | 69 66 20 58 20 69 73 20 |xample, |if X is |
|00001dc0| 61 20 63 6c 61 73 73 20 | 77 69 74 68 20 61 6e 20 |a class |with an |
|00001dd0| 6f 70 65 72 61 74 6f 72 | 2d 3e 28 29 20 6d 65 74 |operator|->() met|
|00001de0| 68 6f 64 2c 20 61 6e 64 | 20 59 28 29 20 69 73 20 |hod, and| Y() is |
|00001df0| 61 20 6d 65 74 68 6f 64 | 20 6f 66 20 73 6f 6d 65 |a method| of some|
|00001e00| 20 6f 74 68 65 72 20 63 | 6c 61 73 73 2c 20 74 68 | other c|lass, th|
|00001e10| 65 6e 0d 58 20 78 6f 62 | 6a 3b 0d 78 6f 62 6a 2d |en.X xob|j;.xobj-|
|00001e20| 3e 59 28 29 3b 0d 69 73 | 20 65 76 61 6c 75 61 74 |>Y();.is| evaluat|
|00001e30| 65 64 20 61 73 0d 28 78 | 6f 62 6a 2e 6f 70 65 72 |ed as.(x|obj.oper|
|00001e40| 61 74 6f 72 2d 3e 28 29 | 29 2d 3e 59 28 29 3b 0d |ator->()|)->Y();.|
|00001e50| 54 68 69 73 20 6d 65 61 | 6e 73 20 74 68 61 74 20 |This mea|ns that |
|00001e60| 6f 70 65 72 61 74 6f 72 | 2d 3e 28 29 20 6d 75 73 |operator|->() mus|
|00001e70| 74 20 72 65 74 75 72 6e | 20 61 6e 20 6f 62 6a 65 |t return| an obje|
|00001e80| 63 74 20 6f 66 20 61 20 | 63 6c 61 73 73 2e 20 54 |ct of a |class. T|
|00001e90| 68 69 73 20 63 6c 61 73 | 73 20 6d 75 73 74 20 63 |his clas|s must c|
|00001ea0| 6f 6e 74 61 69 6e 20 61 | 20 64 65 66 69 6e 69 74 |ontain a| definit|
|00001eb0| 69 6f 6e 20 66 6f 72 20 | 6f 70 65 72 61 74 6f 72 |ion for |operator|
|00001ec0| 2d 3e 28 29 2e 20 54 68 | 65 20 6f 70 65 72 61 74 |->(). Th|e operat|
|00001ed0| 6f 72 2d 3e 28 29 20 69 | 73 20 74 68 65 6e 20 63 |or->() i|s then c|
|00001ee0| 61 6c 6c 65 64 20 61 67 | 61 69 6e 20 66 6f 72 20 |alled ag|ain for |
|00001ef0| 74 68 65 20 6e 65 77 20 | 6f 62 6a 65 63 74 20 61 |the new |object a|
|00001f00| 6e 64 20 74 68 69 73 20 | 70 72 6f 63 65 73 73 20 |nd this |process |
|00001f10| 69 73 20 72 65 70 65 61 | 74 65 64 20 72 65 63 75 |is repea|ted recu|
|00001f20| 72 73 69 76 65 6c 79 20 | 75 6e 74 69 6c 20 74 68 |rsively |until th|
|00001f30| 65 20 72 65 73 75 6c 74 | 20 69 73 20 61 20 70 6f |e result| is a po|
|00001f40| 69 6e 74 65 72 20 74 6f | 20 61 20 63 6c 61 73 73 |inter to| a class|
|00001f50| 20 6f 62 6a 65 63 74 20 | 63 6f 6e 74 61 69 6e 69 | object |containi|
|00001f60| 6e 67 20 74 68 65 20 59 | 28 29 20 6d 65 74 68 6f |ng the Y|() metho|
|00001f70| 64 2e 0d 46 57 5f 54 43 | 6f 75 6e 74 65 64 50 74 |d..FW_TC|ountedPt|
|00001f80| 72 3c 54 3e 20 69 6d 70 | 6c 65 6d 65 6e 74 73 20 |r<T> imp|lements |
|00001f90| 6f 70 65 72 61 74 6f 72 | 2d 3e 28 29 2c 20 62 75 |operator|->(), bu|
|00001fa0| 74 20 61 20 63 6c 69 65 | 6e 74 20 6f 66 20 46 57 |t a clie|nt of FW|
|00001fb0| 5f 54 43 6f 75 6e 74 65 | 64 50 74 72 3c 54 3e 20 |_TCounte|dPtr<T> |
|00001fc0| 6d 75 73 74 20 6c 6f 6f | 6b 20 61 74 20 74 68 65 |must loo|k at the|
|00001fd0| 20 69 6e 74 65 72 66 61 | 63 65 20 6f 66 20 54 20 | interfa|ce of T |
|00001fe0| 74 6f 20 6b 6e 6f 77 20 | 77 68 61 74 20 66 69 65 |to know |what fie|
|00001ff0| 6c 64 73 20 61 72 65 20 | 61 76 61 69 6c 61 62 6c |lds are |availabl|
|00002000| 65 20 28 61 6e 64 20 61 | 63 63 65 73 73 69 62 6c |e (and a|ccessibl|
|00002010| 65 29 2e 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |e). For |example,|
|00002020| 20 79 6f 75 20 6d 75 73 | 74 20 6c 6f 6f 6b 20 61 | you mus|t look a|
|00002030| 74 20 74 68 65 20 69 6e | 74 65 72 66 61 63 65 20 |t the in|terface |
|00002040| 6f 66 20 43 53 74 72 69 | 6e 67 52 65 70 20 28 62 |of CStri|ngRep (b|
|00002050| 65 6c 6f 77 29 20 74 6f | 20 6b 6e 6f 77 20 74 68 |elow) to| know th|
|00002060| 61 74 20 74 68 65 20 70 | 75 62 6c 69 63 20 6d 65 |at the p|ublic me|
|00002070| 74 68 6f 64 2c 20 4c 65 | 6e 67 74 68 28 29 2c 20 |thod, Le|ngth(), |
|00002080| 69 73 20 61 63 63 65 73 | 73 69 62 6c 65 20 74 6f |is acces|sible to|
|00002090| 20 46 57 5f 54 43 6f 75 | 6e 74 65 64 d0 50 74 72 | FW_TCou|nted.Ptr|
|000020a0| 3c 43 53 74 72 69 6e 67 | 52 65 70 3e 2e 0d 0d 63 |<CString|Rep>...c|
|000020b0| 6c 61 73 73 20 43 53 74 | 72 69 6e 67 52 65 70 0d |lass CSt|ringRep.|
|000020c0| 7b 0d 70 75 62 6c 69 63 | 3a 0d 6c 6f 6e 67 20 4c |{.public|:.long L|
|000020d0| 65 6e 67 74 68 28 29 3b | 0d c9 0d 70 72 69 76 61 |ength();|...priva|
|000020e0| 74 65 3a 0d 63 68 61 72 | 20 2a 66 52 65 70 3b 09 |te:.char| *fRep;.|
|000020f0| 09 09 09 09 09 09 09 2f | 2f 20 70 6f 69 6e 74 65 |......./|/ pointe|
|00002100| 72 20 74 6f 20 61 20 73 | 74 72 69 6e 67 0d 69 6e |r to a s|tring.in|
|00002110| 74 20 66 43 6f 75 6e 74 | 3b 09 09 09 09 09 09 09 |t fCount|;.......|
|00002120| 09 2f 2f 20 72 65 66 65 | 72 65 6e 63 65 20 63 6f |.// refe|rence co|
|00002130| 75 6e 74 20 66 69 65 6c | 64 0d 7d 3b 0d 0d 46 57 |unt fiel|d.};..FW|
|00002140| 5f 54 43 6f 75 6e 74 65 | 64 50 74 72 20 73 75 62 |_TCounte|dPtr sub|
|00002150| 63 6c 61 73 73 65 73 0d | 54 68 65 72 65 20 61 72 |classes.|There ar|
|00002160| 65 20 6e 6f 20 73 75 62 | 63 6c 61 73 73 65 73 20 |e no sub|classes |
|00002170| 6f 66 20 74 68 69 73 20 | 63 6c 61 73 73 2e 0d 52 |of this |class..R|
|00002180| 65 6c 61 74 65 64 20 63 | 6c 61 73 73 65 73 0d 4f |elated c|lasses.O|
|00002190| 50 46 20 75 73 65 73 20 | 72 65 66 65 72 65 6e 63 |PF uses |referenc|
|000021a0| 65 20 63 6f 75 6e 74 69 | 6e 67 20 69 6e 20 74 68 |e counti|ng in th|
|000021b0| 65 20 46 69 6c 65 73 2c | 20 47 72 61 70 68 69 63 |e Files,| Graphic|
|000021c0| 73 2c 20 61 6e 64 20 52 | 65 73 6f 75 72 63 65 73 |s, and R|esources|
|000021d0| 20 63 6f 6d 70 6f 6e 65 | 6e 74 73 2e 0d 53 75 62 | compone|nts..Sub|
|000021e0| 63 6c 61 73 73 69 6e 67 | 20 46 57 5f 54 43 6f 75 |classing| FW_TCou|
|000021f0| 6e 74 65 64 50 74 72 0d | 59 6f 75 20 6d 69 67 68 |ntedPtr.|You migh|
|00002200| 74 20 73 75 62 63 6c 61 | 73 73 20 46 57 5f 54 43 |t subcla|ss FW_TC|
|00002210| 6f 75 6e 74 65 64 50 74 | 72 3c 43 59 6f 75 72 43 |ountedPt|r<CYourC|
|00002220| 6c 61 73 73 52 65 70 3e | 20 61 6e 64 20 6e 61 6d |lassRep>| and nam|
|00002230| 65 20 74 68 65 20 72 65 | 73 75 6c 74 69 6e 67 20 |e the re|sulting |
|00002240| 63 6c 61 73 73 20 43 59 | 6f 75 72 43 6c 61 73 73 |class CY|ourClass|
|00002250| 2e 20 54 68 69 73 20 77 | 6f 75 6c 64 20 61 6c 6c |. This w|ould all|
|00002260| 6f 77 20 79 6f 75 20 74 | 6f 20 61 64 64 20 65 78 |ow you t|o add ex|
|00002270| 74 72 61 20 63 6f 6e 73 | 74 72 75 63 74 6f 72 73 |tra cons|tructors|
|00002280| 20 61 6e 64 20 70 72 6f | 76 69 64 65 20 61 20 6d | and pro|vide a m|
|00002290| 6f 72 65 20 63 6f 6e 76 | 65 6e 69 65 6e 74 20 63 |ore conv|enient c|
|000022a0| 6c 61 73 73 20 6e 61 6d | 65 2e 20 48 6f 77 65 76 |lass nam|e. Howev|
|000022b0| 65 72 2c 20 79 6f 75 20 | 73 68 6f 75 6c 64 20 62 |er, you |should b|
|000022c0| 65 20 73 75 72 65 20 74 | 6f 20 72 65 61 64 20 74 |e sure t|o read t|
|000022d0| 68 65 20 73 65 63 74 69 | 6f 6e 20 d2 49 64 69 6f |he secti|on .Idio|
|000022e0| 6d 73 20 66 6f 72 20 75 | 73 69 6e 67 20 72 65 66 |ms for u|sing ref|
|000022f0| 65 72 65 6e 63 65 2d 63 | 6f 75 6e 74 65 64 20 70 |erence-c|ounted p|
|00002300| 6f 69 6e 74 65 72 73 d3 | 20 6f 6e 20 70 61 67 65 |ointers.| on page|
|00002310| 20 36 2c 20 73 69 6e 63 | 65 20 69 74 20 69 73 20 | 6, sinc|e it is |
|00002320| 67 65 6e 65 72 61 6c 6c | 79 20 70 72 65 66 65 72 |generall|y prefer|
|00002330| 61 62 6c 65 20 74 6f 20 | 6e 6f 74 20 73 75 62 63 |able to |not subc|
|00002340| 6c 61 73 73 20 74 68 69 | 73 20 63 6c 61 73 73 2e |lass thi|s class.|
|00002350| 0d 46 57 5f 54 43 6f 75 | 6e 74 65 64 50 74 72 20 |.FW_TCou|ntedPtr |
|00002360| 4d 65 74 68 6f 64 73 0d | 0d 46 57 5f 54 43 6f 75 |Methods.|.FW_TCou|
|00002370| 6e 74 65 64 50 74 72 28 | 29 3b 0d 0d 44 65 66 61 |ntedPtr(|);..Defa|
|00002380| 75 6c 74 20 63 6f 6e 73 | 74 72 75 63 74 6f 72 2e |ult cons|tructor.|
|00002390| 20 43 72 65 61 74 65 73 | 20 61 20 4e 55 4c 4c 20 | Creates| a NULL |
|000023a0| 70 6f 69 6e 74 65 72 20 | 28 61 20 70 6f 69 6e 74 |pointer |(a point|
|000023b0| 65 72 20 77 68 6f 73 65 | 20 76 61 6c 75 65 20 69 |er whose| value i|
|000023c0| 73 20 30 29 2e 20 53 75 | 63 68 20 61 6e 20 69 6e |s 0). Su|ch an in|
|000023d0| 73 74 61 6e 63 65 20 64 | 6f 65 73 20 6e 6f 74 20 |stance d|oes not |
|000023e0| 70 6f 69 6e 74 20 74 6f | 20 61 6e 79 20 72 65 70 |point to| any rep|
|000023f0| 72 65 73 65 6e 74 61 74 | 69 6f 6e 20 6f 62 6a 65 |resentat|ion obje|
|00002400| 63 74 2e 0d 0d 46 57 5f | 54 43 6f 75 6e 74 65 64 |ct...FW_|TCounted|
|00002410| 50 74 72 28 74 52 65 70 | 72 65 73 65 6e 74 61 74 |Ptr(tRep|resentat|
|00002420| 69 6f 6e 2a 20 72 65 70 | 29 3b 0d 0d 43 72 65 61 |ion* rep|);..Crea|
|00002430| 74 65 73 20 61 20 6e 65 | 77 20 72 65 66 65 72 65 |tes a ne|w refere|
|00002440| 6e 63 65 2d 63 6f 75 6e | 74 65 64 20 70 6f 69 6e |nce-coun|ted poin|
|00002450| 74 65 72 20 74 68 61 74 | 20 70 6f 69 6e 74 73 20 |ter that| points |
|00002460| 74 6f 20 74 68 65 20 72 | 65 70 72 65 73 65 6e 74 |to the r|epresent|
|00002470| 61 74 69 6f 6e 20 6f 62 | 6a 65 63 74 20 70 61 73 |ation ob|ject pas|
|00002480| 73 65 64 20 69 6e 20 61 | 73 20 61 20 70 61 72 61 |sed in a|s a para|
|00002490| 6d 65 74 65 72 2c 20 61 | 6e 64 20 69 6e 63 72 65 |meter, a|nd incre|
|000024a0| 6d 65 6e 74 73 20 74 68 | 65 20 72 65 66 65 72 65 |ments th|e refere|
|000024b0| 6e 63 65 20 63 6f 75 6e | 74 20 62 79 20 6f 6e 65 |nce coun|t by one|
|000024c0| 2e 0d 0d 46 57 5f 54 43 | 6f 75 6e 74 65 64 50 74 |...FW_TC|ountedPt|
|000024d0| 72 28 63 6f 6e 73 74 20 | 46 57 5f 54 43 6f 75 6e |r(const |FW_TCoun|
|000024e0| 74 65 64 50 74 72 3c 74 | 52 65 70 72 65 73 65 6e |tedPtr<t|Represen|
|000024f0| 74 61 74 69 6f 6e 3e 26 | 20 6f 74 68 65 72 29 3b |tation>&| other);|
|00002500| 0d 0d 43 6f 70 79 20 63 | 6f 6e 73 74 72 75 63 74 |..Copy c|onstruct|
|00002510| 6f 72 2e 20 43 72 65 61 | 74 65 73 20 61 20 6e 65 |or. Crea|tes a ne|
|00002520| 77 20 72 65 66 65 72 65 | 6e 63 65 2d 63 6f 75 6e |w refere|nce-coun|
|00002530| 74 65 64 20 70 6f 69 6e | 74 65 72 20 74 68 61 74 |ted poin|ter that|
|00002540| 20 70 6f 69 6e 74 73 20 | 74 6f 20 74 68 65 20 73 | points |to the s|
|00002550| 61 6d 65 20 72 65 70 72 | 65 73 65 6e 74 61 74 69 |ame repr|esentati|
|00002560| 6f 6e 20 6f 62 6a 65 63 | 74 20 61 73 20 74 68 65 |on objec|t as the|
|00002570| 20 6f 74 68 65 72 20 72 | 65 66 65 72 65 6e 63 65 | other r|eference|
|00002580| 2d 63 6f 75 6e 74 65 64 | 20 70 6f 69 6e 74 65 72 |-counted| pointer|
|00002590| 20 70 6f 69 6e 74 73 20 | 74 6f 2c 20 61 6e 64 20 | points |to, and |
|000025a0| 69 6e 63 72 65 6d 65 6e | 74 73 20 74 68 65 20 72 |incremen|ts the r|
|000025b0| 65 66 65 72 65 6e 63 65 | 20 63 6f 75 6e 74 20 62 |eference| count b|
|000025c0| 79 20 6f 6e 65 2e 0d 0d | 7e 46 57 5f 54 43 6f 75 |y one...|~FW_TCou|
|000025d0| 6e 74 65 64 50 74 72 28 | 29 3b 0d 0d 44 65 73 74 |ntedPtr(|);..Dest|
|000025e0| 72 6f 79 73 20 74 68 65 | 20 72 65 66 65 72 65 6e |roys the| referen|
|000025f0| 63 65 2d 63 6f 75 6e 74 | 65 64 20 70 6f 69 6e 74 |ce-count|ed point|
|00002600| 65 72 2e 20 44 65 63 72 | 65 6d 65 6e 74 73 20 74 |er. Decr|ements t|
|00002610| 68 65 20 72 65 66 65 72 | 65 6e 63 65 20 63 6f 75 |he refer|ence cou|
|00002620| 6e 74 20 69 6e 20 74 68 | 65 20 72 65 70 72 65 73 |nt in th|e repres|
|00002630| 65 6e 74 61 74 69 6f 6e | 20 6f 62 6a 65 63 74 20 |entation| object |
|00002640| 61 6e 64 20 64 65 6c 65 | 74 65 73 20 74 68 65 20 |and dele|tes the |
|00002650| 72 65 70 72 65 73 65 6e | 74 61 74 69 6f 6e 20 6f |represen|tation o|
|00002660| 62 6a 65 63 74 20 69 66 | 20 74 68 65 20 72 65 66 |bject if| the ref|
|00002670| 65 72 65 6e 63 65 20 63 | 6f 75 6e 74 20 69 73 20 |erence c|ount is |
|00002680| 7a 65 72 6f 2e 0d 0d 69 | 6e 74 20 6f 70 65 72 61 |zero...i|nt opera|
|00002690| 74 6f 72 21 3d 28 63 6f | 6e 73 74 20 46 57 5f 54 |tor!=(co|nst FW_T|
|000026a0| 43 6f 75 6e 74 65 64 50 | 74 72 3c 74 52 65 70 72 |CountedP|tr<tRepr|
|000026b0| 65 73 65 6e 74 61 74 69 | 6f 6e 3e 26 20 6f 74 68 |esentati|on>& oth|
|000026c0| 65 72 29 20 63 6f 6e 73 | 74 3b 0d 0d 52 65 74 75 |er) cons|t;..Retu|
|000026d0| 72 6e 73 20 54 52 55 45 | 20 69 66 20 74 68 65 20 |rns TRUE| if the |
|000026e0| 72 65 66 65 72 65 6e 63 | 65 2d 63 6f 75 6e 74 65 |referenc|e-counte|
|000026f0| 64 20 70 6f 69 6e 74 65 | 72 20 70 6f 69 6e 74 73 |d pointe|r points|
|00002700| 20 74 6f 20 61 20 64 69 | 66 66 65 72 65 6e 74 20 | to a di|fferent |
|00002710| 72 65 70 72 65 73 65 6e | 74 61 74 69 6f 6e 20 6f |represen|tation o|
|00002720| 62 6a 65 63 74 20 61 6e | 64 20 46 41 4c 53 45 20 |bject an|d FALSE |
|00002730| 69 66 20 69 74 20 64 6f | 65 73 20 6e 6f 74 2e 20 |if it do|es not. |
|00002740| 0d 0d 74 52 65 70 72 65 | 73 65 6e 74 61 74 69 6f |..tRepre|sentatio|
|00002750| 6e 26 20 6f 70 65 72 61 | 74 6f 72 2a 28 29 20 63 |n& opera|tor*() c|
|00002760| 6f 6e 73 74 3b 0d 0d 50 | 72 6f 76 69 64 65 73 20 |onst;..P|rovides |
|00002770| 61 63 63 65 73 73 20 74 | 6f 20 74 68 65 20 72 65 |access t|o the re|
|00002780| 70 72 65 73 65 6e 74 61 | 74 69 6f 6e 20 6f 62 6a |presenta|tion obj|
|00002790| 65 63 74 2e 20 54 68 69 | 73 20 6f 70 65 72 61 74 |ect. Thi|s operat|
|000027a0| 6f 72 20 73 68 6f 75 6c | 64 20 62 65 20 75 73 65 |or shoul|d be use|
|000027b0| 64 20 6f 6e 6c 79 20 69 | 66 20 6f 70 65 72 61 74 |d only i|f operat|
|000027c0| 6f 72 2d 3e 28 29 20 69 | 73 20 6e 6f 74 20 73 75 |or->() i|s not su|
|000027d0| 66 66 69 63 69 65 6e 74 | 2e 0d 0d 74 52 65 70 72 |fficient|...tRepr|
|000027e0| 65 73 65 6e 74 61 74 69 | 6f 6e 2a 20 6f 70 65 72 |esentati|on* oper|
|000027f0| 61 74 6f 72 2d 3e 28 29 | 20 63 6f 6e 73 74 3b 0d |ator->()| const;.|
|00002800| 0d 50 72 6f 76 69 64 65 | 73 20 61 63 63 65 73 73 |.Provide|s access|
|00002810| 20 74 6f 20 66 69 65 6c | 64 73 20 6f 66 20 74 68 | to fiel|ds of th|
|00002820| 65 20 72 65 70 72 65 73 | 65 6e 74 61 74 69 6f 6e |e repres|entation|
|00002830| 20 6f 62 6a 65 63 74 2e | 20 46 6f 72 20 6d 6f 72 | object.| For mor|
|00002840| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 6f 6e |e inform|ation on|
|00002850| 20 73 6d 61 72 74 20 70 | 6f 69 6e 74 65 72 73 2c | smart p|ointers,|
|00002860| 20 73 65 65 20 d2 44 65 | 72 65 66 65 72 65 6e 63 | see .De|referenc|
|00002870| 69 6e 67 d3 20 6f 6e 20 | 70 61 67 65 20 36 2e 0d |ing. on |page 6..|
|00002880| 0d 0d 46 57 5f 54 43 6f | 75 6e 74 65 64 50 74 72 |..FW_TCo|untedPtr|
|00002890| 3c 74 52 65 70 72 65 73 | 65 6e 74 61 74 69 6f 6e |<tRepres|entation|
|000028a0| 3e 26 20 6f 70 65 72 61 | 74 6f 72 3d 28 63 6f 6e |>& opera|tor=(con|
|000028b0| 73 74 20 46 57 5f 54 43 | 6f 75 6e 74 65 64 50 74 |st FW_TC|ountedPt|
|000028c0| 72 3c 74 52 65 70 72 65 | 73 65 6e 74 61 74 69 6f |r<tRepre|sentatio|
|000028d0| 6e 3e 26 20 6f 74 68 65 | 72 29 3b 0d 0d 41 73 73 |n>& othe|r);..Ass|
|000028e0| 69 67 6e 6d 65 6e 74 20 | 6f 70 65 72 61 74 6f 72 |ignment |operator|
|000028f0| 2e 20 50 6f 69 6e 74 20 | 74 68 69 73 20 72 65 66 |. Point |this ref|
|00002900| 65 72 65 6e 63 65 2d 63 | 6f 75 6e 74 65 64 20 70 |erence-c|ounted p|
|00002910| 6f 69 6e 74 65 72 20 74 | 6f 20 74 68 65 20 73 61 |ointer t|o the sa|
|00002920| 6d 65 20 72 65 70 72 65 | 73 65 6e 74 61 74 69 6f |me repre|sentatio|
|00002930| 6e 20 6f 62 6a 65 63 74 | 20 61 73 20 74 68 65 20 |n object| as the |
|00002940| 6f 74 68 65 72 20 72 65 | 66 65 72 65 6e 63 65 2d |other re|ference-|
|00002950| 63 6f 75 6e 74 65 64 20 | 70 6f 69 6e 74 65 72 20 |counted |pointer |
|00002960| 70 6f 69 6e 74 73 20 74 | 6f 2c 20 61 6e 64 20 69 |points t|o, and i|
|00002970| 6e 63 72 65 6d 65 6e 74 | 20 74 68 65 20 72 65 66 |ncrement| the ref|
|00002980| 65 72 65 6e 63 65 20 63 | 6f 75 6e 74 20 62 79 20 |erence c|ount by |
|00002990| 6f 6e 65 2e 0d 0d 46 57 | 5f 54 43 6f 75 6e 74 65 |one...FW|_TCounte|
|000029a0| 64 50 74 72 3c 74 52 65 | 70 72 65 73 65 6e 74 61 |dPtr<tRe|presenta|
|000029b0| 74 69 6f 6e 3e 26 20 6f | 70 65 72 61 74 6f 72 3d |tion>& o|perator=|
|000029c0| 28 74 52 65 70 72 65 73 | 65 6e 74 61 74 69 6f 6e |(tRepres|entation|
|000029d0| 2a 20 72 65 70 29 3b 0d | 0d 41 73 73 69 67 6e 6d |* rep);.|.Assignm|
|000029e0| 65 6e 74 20 6f 70 65 72 | 61 74 6f 72 2e 20 50 6f |ent oper|ator. Po|
|000029f0| 69 6e 74 20 74 68 69 73 | 20 72 65 66 65 72 65 6e |int this| referen|
|00002a00| 63 65 2d 63 6f 75 6e 74 | 65 64 20 70 6f 69 6e 74 |ce-count|ed point|
|00002a10| 65 72 20 74 6f 20 74 68 | 65 20 72 65 70 72 65 73 |er to th|e repres|
|00002a20| 65 6e 74 61 74 69 6f 6e | 20 6f 62 6a 65 63 74 20 |entation| object |
|00002a30| 70 61 73 73 65 64 20 69 | 6e 20 61 73 20 61 20 70 |passed i|n as a p|
|00002a40| 61 72 61 6d 65 74 65 72 | 2c 20 61 6e 64 20 69 6e |arameter|, and in|
|00002a50| 63 72 65 6d 65 6e 74 20 | 74 68 65 20 72 65 66 65 |crement |the refe|
|00002a60| 72 65 6e 63 65 20 63 6f | 75 6e 74 20 62 79 20 6f |rence co|unt by o|
|00002a70| 6e 65 2e 0d 0d 69 6e 74 | 20 6f 70 65 72 61 74 6f |ne...int| operato|
|00002a80| 72 3d 3d 28 63 6f 6e 73 | 74 20 46 57 5f 54 43 6f |r==(cons|t FW_TCo|
|00002a90| 75 6e 74 65 64 50 74 72 | 3c 74 52 65 70 72 65 73 |untedPtr|<tRepres|
|00002aa0| 65 6e 74 61 74 69 6f 6e | 3e 26 20 6f 74 68 65 72 |entation|>& other|
|00002ab0| 29 20 63 6f 6e 73 74 3b | 0d 0d 52 65 74 75 72 6e |) const;|..Return|
|00002ac0| 73 20 54 52 55 45 20 69 | 66 20 74 68 65 20 72 65 |s TRUE i|f the re|
|00002ad0| 66 65 72 65 6e 63 65 2d | 63 6f 75 6e 74 65 64 20 |ference-|counted |
|00002ae0| 70 6f 69 6e 74 65 72 20 | 70 6f 69 6e 74 73 20 74 |pointer |points t|
|00002af0| 6f 20 74 68 65 20 73 61 | 6d 65 20 72 65 70 72 65 |o the sa|me repre|
|00002b00| 73 65 6e 74 61 74 69 6f | 6e 20 6f 62 6a 65 63 74 |sentatio|n object|
|00002b10| 20 61 6e 64 20 46 41 4c | 53 45 20 69 66 20 69 74 | and FAL|SE if it|
|00002b20| 20 64 6f 65 73 20 6e 6f | 74 2e 0d 0d 6f 70 65 72 | does no|t...oper|
|00002b30| 61 74 6f 72 20 63 6f 6e | 73 74 20 76 6f 69 64 2a |ator con|st void*|
|00002b40| 28 29 20 63 6f 6e 73 74 | 3b 0d 0d 55 73 65 20 74 |() const|;..Use t|
|00002b50| 6f 20 74 65 73 74 20 69 | 66 20 74 68 65 20 72 65 |o test i|f the re|
|00002b60| 66 65 72 65 6e 63 65 2d | 63 6f 75 6e 74 65 64 20 |ference-|counted |
|00002b70| 70 6f 69 6e 74 65 72 20 | 69 73 20 61 20 4e 55 4c |pointer |is a NUL|
|00002b80| 4c 20 70 6f 69 6e 74 65 | 72 2e 0d 0e a6 00 00 00 |L pointe|r.......|
|00002b90| 00 03 18 02 64 00 11 02 | ff 0c 00 ff ff ff ff 00 |....d...|........|
|00002ba0| 00 00 00 00 00 00 00 02 | 64 00 00 03 18 00 00 00 |........|d.......|
|00002bb0| 00 00 00 00 01 00 0a 00 | 00 00 00 03 18 02 64 00 |........|......d.|
|00002bc0| 0a 00 00 00 00 00 00 00 | 00 00 34 02 b4 00 6c 02 |........|..4...l.|
|00002bd0| be 02 0a 00 2c 00 08 00 | 14 05 54 69 6d 65 73 00 |....,...|..Times.|
|00002be0| 03 00 14 00 04 02 00 00 | 0d 00 0a 00 2e 00 04 00 |........|........|
|00002bf0| 00 01 00 00 15 fd 60 00 | 28 02 bb 01 8f 14 4f 50 |......`.|(.....OP|
|00002c00| 46 20 52 65 66 65 72 65 | 6e 63 65 20 4d 61 6e 75 |F Refere|nce Manu|
|00002c10| 61 6c 00 00 29 76 01 31 | 00 00 0a ff ff ff ff ff |al..)v.1|........|
|00002c20| ff ff ff 00 74 00 1e 00 | b4 01 f8 00 c6 02 0a 00 |....t...|........|
|00002c30| bd 02 0a 00 c6 02 01 00 | bd 01 f8 00 b4 02 01 00 |........|........|
|00002c40| bd 02 0a 00 70 00 1e 00 | b4 01 f8 00 c6 02 0a 00 |....p...|........|
|00002c50| bd 02 0a 00 c6 02 01 00 | bd 01 f8 00 b4 02 01 00 |........|........|
|00002c60| bd 02 0a 00 20 00 bd 00 | 6c 00 bd 01 ef 00 04 03 |.... ...|l.......|
|00002c70| 00 00 0d 00 24 00 15 c0 | 80 00 a1 00 64 00 10 4f |....$...|....d..O|
|00002c80| 4e 4c 4e 00 64 00 00 00 | 7b 01 78 00 9f 01 eb 00 |NLN.d...|{.x.....|
|00002c90| 28 00 96 01 78 09 55 74 | 69 6c 69 74 69 65 73 00 |(...x.Ut|ilities.|
|00002ca0| 15 b6 80 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 00 |......d.|.ONLN.d.|
|00002cb0| 0a 00 9f 01 40 00 c3 01 | ec 00 28 00 ba 01 40 09 |....@...|..(...@.|
|00002cc0| 43 6f 6d 70 6f 6e 65 6e | 74 00 15 c0 00 00 a1 00 |Componen|t.......|
|00002cd0| 64 00 10 4f 4e 4c 4e 00 | 64 ff ff 00 00 00 00 00 |d..ONLN.|d.......|
|00002ce0| 00 00 00 00 2b 9a 24 01 | 31 00 04 01 00 00 0d 00 |....+.$.|1.......|
|00002cf0| 0f 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 00 15 01 |....d..O|NLN.d...|
|00002d00| 04 00 e1 01 13 01 32 00 | 28 01 0f 00 e1 0c 49 6e |......2.|(.....In|
|00002d10| 74 72 6f 64 75 63 74 69 | 6f 6e 00 00 2c 00 0b 00 |troducti|on..,...|
|00002d20| 10 08 50 61 6c 61 74 69 | 6e 6f 00 00 03 00 10 00 |..Palati|no......|
|00002d30| 04 00 00 00 0d 00 0a 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|00002d40| 4e 00 64 00 22 01 18 00 | e1 01 24 00 f4 00 2a 12 |N.d."...|..$...*.|
|00002d50| 04 54 68 65 20 00 15 bb | c0 00 a1 00 64 00 10 4f |.The ...|....d..O|
|00002d60| 4e 4c 4e 00 64 00 26 01 | 18 00 f4 01 24 01 4b 00 |NLN.d.&.|....$.K.|
|00002d70| 29 13 13 55 74 69 6c 69 | 74 69 65 73 20 63 6f 6d |)..Utili|ties com|
|00002d80| 70 6f 6e 65 6e 74 00 00 | 15 10 00 00 a1 00 64 00 |ponent..|......d.|
|00002d90| 10 4f 4e 4c 4e 00 64 00 | 39 01 18 01 4c 01 24 01 |.ONLN.d.|9...L.$.|
|00002da0| fc 00 29 58 2c 20 69 73 | 20 61 20 63 6f 6c 6c 65 |..)X, is| a colle|
|00002db0| 63 74 69 6f 6e 20 6f 66 | 20 6d 69 73 63 65 6c 6c |ction of| miscell|
|00002dc0| 61 6e 65 6f 75 73 20 75 | 74 69 6c 69 74 69 65 73 |aneous u|tilities|
|00002dd0| 20 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 00 65 01 | ...d..O|NLN.d.e.|
|00002de0| 24 00 e1 01 30 01 e7 00 | 28 01 2d 00 e1 3a 77 68 |$...0...|(.-..:wh|
|00002df0| 69 63 68 20 64 6f 6e d5 | 74 20 6c 6f 67 69 63 61 |ich don.|t logica|
|00002e00| 6c 6c 79 20 62 65 6c 6f | 6e 67 20 69 6e 20 74 68 |lly belo|ng in th|
|00002e10| 65 20 6f 74 68 65 72 20 | 4f 50 46 20 63 6f 6d 70 |e other |OPF comp|
|00002e20| 6f 6e 65 6e 74 73 2e 20 | 00 00 a1 00 64 00 10 4f |onents. |....d..O|
|00002e30| 4e 4c 4e 00 64 00 9f 01 | 30 00 e1 01 3c 01 95 00 |NLN.d...|0...<...|
|00002e40| 2a 0c 2c 43 75 72 72 65 | 6e 74 6c 79 2c 20 74 68 |*.,Curre|ntly, th|
|00002e50| 65 72 65 20 69 73 20 6f | 6e 6c 79 20 6f 6e 65 20 |ere is o|nly one |
|00002e60| 75 74 69 6c 69 74 79 20 | 69 6e 20 74 68 65 20 00 |utility |in the .|
|00002e70| 15 51 60 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 00 |.Q`...d.|.ONLN.d.|
|00002e80| cb 01 30 01 96 01 3c 01 | ed 00 29 b5 13 55 74 69 |..0...<.|..)..Uti|
|00002e90| 6c 69 74 69 65 73 20 63 | 6f 6d 70 6f 6e 65 6e 74 |lities c|omponent|
|00002ea0| 00 00 15 a5 a0 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00002eb0| 64 00 de 01 30 01 ed 01 | 3c 02 02 00 29 57 06 3a |d...0...|<...)W.:|
|00002ec0| 20 74 68 65 20 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 | the ...|d..ONLN.|
|00002ed0| 64 00 e4 01 3c 00 e1 01 | 48 01 53 00 28 01 45 00 |d...<...|H.S.(.E.|
|00002ee0| e1 1b 72 65 66 65 72 65 | 6e 63 65 20 63 6f 75 6e |..refere|nce coun|
|00002ef0| 74 69 6e 67 20 75 74 69 | 6c 69 74 79 2e 00 03 00 |ting uti|lity....|
|00002f00| 14 00 04 01 00 00 0d 00 | 0f 00 a1 00 64 00 10 4f |........|....d..O|
|00002f10| 4e 4c 4e 00 64 01 00 01 | 53 00 e1 01 62 01 a3 00 |NLN.d...|S...b...|
|00002f20| 2a 19 1c 55 74 69 6c 69 | 74 69 65 73 20 43 6f 6d |*..Utili|ties Com|
|00002f30| 70 6f 6e 65 6e 74 20 4f | 76 65 72 76 69 65 77 00 |ponent O|verview.|
|00002f40| 03 00 10 00 04 00 00 00 | 0d 00 0a 00 a1 00 64 00 |........|......d.|
|00002f50| 10 4f 4e 4c 4e 00 64 01 | 1d 01 67 00 e1 01 73 00 |.ONLN.d.|..g...s.|
|00002f60| f4 00 2a 12 04 54 68 65 | 20 00 15 bb c0 00 a1 00 |..*..The| .......|
|00002f70| 64 00 10 4f 4e 4c 4e 00 | 64 01 21 01 67 00 f4 01 |d..ONLN.|d.!.g...|
|00002f80| 73 01 4b 00 29 13 13 55 | 74 69 6c 69 74 69 65 73 |s.K.)..U|tilities|
|00002f90| 20 63 6f 6d 70 6f 6e 65 | 6e 74 00 00 15 10 00 00 | compone|nt......|
|00002fa0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 01 34 01 67 01 |..d..ONL|N.d.4.g.|
|00002fb0| 4c 01 73 02 08 00 29 58 | 2b 20 63 6f 6e 74 61 69 |L.s...)X|+ contai|
|00002fc0| 6e 73 20 31 20 63 6c 61 | 73 73 20 61 6e 64 20 31 |ns 1 cla|ss and 1|
|00002fd0| 31 20 6d 65 74 68 6f 64 | 73 2e 20 59 6f 75 20 77 |1 method|s. You w|
|00002fe0| 69 6c 6c 20 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |ill ....|d..ONLN.|
|00002ff0| 64 01 5f 01 73 00 e1 01 | 7f 01 d4 00 28 01 7c 00 |d._.s...|....(.|.|
|00003000| e1 38 6c 69 6b 65 6c 79 | 20 6e 65 65 64 20 74 6f |.8likely| need to|
|00003010| 20 6b 6e 6f 77 20 61 62 | 6f 75 74 2c 20 61 6e 64 | know ab|out, and|
|00003020| 20 75 73 65 2c 20 74 68 | 65 20 6d 61 6a 6f 72 69 | use, th|e majori|
|00003030| 74 79 20 6f 66 20 74 68 | 65 20 00 00 15 18 a0 00 |ty of th|e ......|
|00003040| a1 00 64 00 10 4f 4e 4c | 4e 00 64 01 97 01 73 01 |..d..ONL|N.d...s.|
|00003050| d5 01 7f 01 fa 00 29 f4 | 0a 55 74 69 6c 69 74 69 |......).|.Utiliti|
|00003060| 65 73 20 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 01 |es ...d.|.ONLN.d.|
|00003070| a1 01 7f 00 e1 01 8b 01 | 12 00 28 01 88 00 e1 09 |........|..(.....|
|00003080| 63 6f 6d 70 6f 6e 65 6e | 74 00 15 60 20 00 a1 00 |componen|t..` ...|
|00003090| 64 00 10 4f 4e 4c 4e 00 | 64 01 aa 01 7f 01 13 01 |d..ONLN.|d.......|
|000030a0| 8b 01 3e 00 29 32 09 20 | 6d 65 74 68 6f 64 73 2e |..>.)2. |methods.|
|000030b0| 00 00 03 00 14 00 04 01 | 00 00 0d 00 0c 00 a1 00 |........|........|
|000030c0| 64 00 10 4f 4e 4c 4e 00 | 64 01 b4 01 96 00 e1 01 |d..ONLN.|d.......|
|000030d0| a2 01 12 00 28 01 9f 00 | e1 09 44 69 72 65 63 74 |....(...|..Direct|
|000030e0| 6f 72 79 00 2c 00 0a 00 | 16 07 43 6f 75 72 69 65 |ory.,...|..Courie|
|000030f0| 72 00 03 00 16 00 04 00 | 00 00 0d 00 0a 00 2e 00 |r.......|........|
|00003100| 04 00 00 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00003110| 64 01 be 01 a4 00 e1 01 | b0 01 11 00 2a 0e 08 46 |d.......|....*..F|
|00003120| 57 46 6f 75 6e 64 55 00 | 03 00 14 00 04 01 00 00 |WFoundU.|........|
|00003130| 0d 00 0c 00 2e 00 04 00 | 00 01 00 00 a1 00 64 00 |........|......d.|
|00003140| 10 4f 4e 4c 4e 00 64 01 | c7 01 bb 00 e1 01 c7 01 |.ONLN.d.|........|
|00003150| 0d 00 2a 17 08 48 65 72 | 69 74 61 67 65 00 03 00 |..*..Her|itage...|
|00003160| 16 00 04 00 00 00 0d 00 | 0a 00 2e 00 04 00 00 00 |........|........|
|00003170| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 01 d0 01 |....d..O|NLN.d...|
|00003180| cc 00 e1 01 d8 01 35 00 | 2a 11 0e 46 57 5f 54 43 |......5.|*..FW_TC|
|00003190| 6f 75 6e 74 65 64 50 74 | 72 00 03 00 10 00 2e 00 |ountedPt|r.......|
|000031a0| 04 00 00 01 00 00 15 00 | 00 00 a1 00 64 00 10 4f |........|....d..O|
|000031b0| 4e 4c 4e 00 64 ff ff 00 | 00 00 00 00 00 00 00 00 |NLN.d...|........|
|000031c0| 29 5c 01 2e 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |)\......|d..ONLN.|
|000031d0| 64 ff ff 00 00 00 00 00 | 00 00 00 00 29 0c 01 2e |d.......|....)...|
|000031e0| 00 00 15 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|000031f0| 64 ff ff 00 00 00 00 00 | 00 00 00 00 29 0d 01 2e |d.......|....)...|
|00003200| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 ff ff 00 |....d..O|NLN.d...|
|00003210| 00 00 00 00 00 00 00 00 | 29 0c 01 2e 00 00 15 00 |........|).......|
|00003220| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 ff ff 00 |....d..O|NLN.d...|
|00003230| 00 00 00 00 00 00 00 00 | 29 0d 01 2e 00 00 a1 00 |........|).......|
|00003240| 64 00 10 4f 4e 4c 4e 00 | 64 ff ff 00 00 00 00 00 |d..ONLN.|d.......|
|00003250| 00 00 00 00 29 0c 01 2e | 00 00 15 00 00 00 a1 00 |....)...|........|
|00003260| 64 00 10 4f 4e 4c 4e 00 | 64 ff ff 00 00 00 00 00 |d..ONLN.|d.......|
|00003270| 00 00 00 00 29 0d 01 2e | 00 00 a1 00 64 00 10 4f |....)...|....d..O|
|00003280| 4e 4c 4e 00 64 ff ff 00 | 00 00 00 00 00 00 00 00 |NLN.d...|........|
|00003290| 29 0c 01 2e 00 00 15 00 | 00 00 a1 00 64 00 10 4f |).......|....d..O|
|000032a0| 4e 4c 4e 00 64 ff ff 00 | 00 00 00 00 00 00 00 00 |NLN.d...|........|
|000032b0| 29 0d 01 2e 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |).......|d..ONLN.|
|000032c0| 64 ff ff 00 00 00 00 00 | 00 00 00 00 29 0c 01 2e |d.......|....)...|
|000032d0| 00 00 15 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|000032e0| 64 ff ff 00 00 00 00 00 | 00 00 00 00 29 0d 01 2e |d.......|....)...|
|000032f0| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 ff ff 00 |....d..O|NLN.d...|
|00003300| 00 00 00 00 00 00 00 00 | 29 0c 01 2e 00 00 15 00 |........|).......|
|00003310| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 ff ff 00 |....d..O|NLN.d...|
|00003320| 00 00 00 00 00 00 00 00 | 29 0d 01 2e 00 00 a1 00 |........|).......|
|00003330| 64 00 10 4f 4e 4c 4e 00 | 64 ff ff 00 00 00 00 00 |d..ONLN.|d.......|
|00003340| 00 00 00 00 29 0c 01 2e | 00 00 15 00 00 00 a1 00 |....)...|........|
|00003350| 64 00 10 4f 4e 4c 4e 00 | 64 ff ff 00 00 00 00 00 |d..ONLN.|d.......|
|00003360| 00 00 00 00 29 0d 01 2e | 00 00 a1 00 64 00 10 4f |....)...|....d..O|
|00003370| 4e 4c 4e 00 64 ff ff 00 | 00 00 00 00 00 00 00 00 |NLN.d...|........|
|00003380| 29 0c 01 2e 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |).......|d..ONLN.|
|00003390| 64 01 df 01 cc 02 05 01 | d8 02 0a 00 29 0d 01 33 |d.......|....)..3|
|000033a0| 00 00 03 00 14 00 04 01 | 00 00 0d 00 0c 00 a1 00 |........|........|
|000033b0| 64 00 10 4f 4e 4c 4e 00 | 64 01 e1 01 e1 00 e1 01 |d..ONLN.|d.......|
|000033c0| ed 01 44 00 28 01 ea 00 | e1 13 55 74 69 6c 69 74 |..D.(...|..Utilit|
|000033d0| 69 65 73 20 63 6f 6d 70 | 6f 6e 65 6e 74 00 15 21 |ies comp|onent..!|
|000033e0| 40 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 01 f4 01 |@...d..O|NLN.d...|
|000033f0| e1 01 45 01 ed 01 69 00 | 29 64 08 20 63 6c 61 73 |..E...i.|)d. clas|
|00003400| 73 65 73 00 03 00 10 00 | 04 00 00 00 0d 00 0a 00 |ses.....|........|
|00003410| a1 00 64 00 10 4f 4e 4c | 4e 00 64 01 fd 01 ef 00 |..d..ONL|N.d.....|
|00003420| e1 01 fb 01 62 00 28 01 | f8 00 e1 1f 54 68 65 72 |....b.(.|....Ther|
|00003430| 65 20 69 73 20 6f 6e 6c | 79 20 6f 6e 65 20 63 6c |e is onl|y one cl|
|00003440| 61 73 73 20 69 6e 20 74 | 68 65 20 00 15 d6 00 00 |ass in t|he .....|
|00003450| a1 00 64 00 10 4f 4e 4c | 4e 00 64 02 1c 01 ef 01 |..d..ONL|N.d.....|
|00003460| 62 01 fb 01 b9 00 29 81 | 13 55 74 69 6c 69 74 69 |b.....).|.Utiliti|
|00003470| 65 73 20 63 6f 6d 70 6f | 6e 65 6e 74 00 00 15 2a |es compo|nent...*|
|00003480| 40 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 02 2f 01 |@...d..O|NLN.d./.|
|00003490| ef 01 ba 01 fb 01 bf 00 | 29 58 02 2c 20 00 03 00 |........|)X., ...|
|000034a0| 16 00 2e 00 04 00 00 00 | 00 00 a1 00 64 00 10 4f |........|....d..O|
|000034b0| 4e 4c 4e 00 64 02 31 01 | fb 00 e1 02 07 01 35 00 |NLN.d.1.|......5.|
|000034c0| 28 02 04 00 e1 0e 46 57 | 5f 54 43 6f 75 6e 74 65 |(.....FW|_TCounte|
|000034d0| 64 50 74 72 00 00 03 00 | 10 00 a1 00 64 00 10 4f |dPtr....|....d..O|
|000034e0| 4e 4c 4e 00 64 02 3f 01 | fb 01 35 02 07 01 cd 00 |NLN.d.?.|..5.....|
|000034f0| 29 54 24 2c 20 77 68 69 | 63 68 20 69 73 20 61 74 |)T$, whi|ch is at|
|00003500| 20 74 68 65 20 72 6f 6f | 74 20 6c 65 76 65 6c 20 | the roo|t level |
|00003510| 6f 66 20 74 68 65 20 00 | a1 00 64 00 10 4f 4e 4c |of the .|..d..ONL|
|00003520| 4e 00 64 02 63 01 fb 01 | cd 02 07 01 f8 00 29 98 |N.d.c...|......).|
|00003530| 0a 55 74 69 6c 69 74 69 | 65 73 20 00 2e 00 04 00 |.Utiliti|es .....|
|00003540| 00 01 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 02 |......d.|.ONLN.d.|
|00003550| 6d 02 07 00 e1 02 13 01 | 12 00 28 02 10 00 e1 09 |m.......|..(.....|
|00003560| 63 6f 6d 70 6f 6e 65 6e | 74 00 15 60 20 00 a1 00 |componen|t..` ...|
|00003570| 64 00 10 4f 4e 4c 4e 00 | 64 02 76 02 07 01 13 02 |d..ONLN.|d.v.....|
|00003580| 13 01 15 00 29 32 01 2e | 00 00 03 00 14 00 04 01 |....)2..|........|
|00003590| 00 00 0d 00 0c 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|000035a0| 64 02 78 02 1e 00 e1 02 | 2a 01 44 00 28 02 27 00 |d.x.....|*.D.(.'.|
|000035b0| e1 13 55 74 69 6c 69 74 | 69 65 73 20 63 6f 6d 70 |..Utilit|ies comp|
|000035c0| 6f 6e 65 6e 74 00 15 21 | 40 00 a1 00 64 00 10 4f |onent..!|@...d..O|
|000035d0| 4e 4c 4e 00 64 02 8b 02 | 1e 01 45 02 2a 01 73 00 |NLN.d...|..E.*.s.|
|000035e0| 29 64 09 20 63 6f 6e 63 | 65 70 74 73 00 00 03 00 |)d. conc|epts....|
|000035f0| 10 00 04 00 00 00 0d 00 | 0a 00 a1 00 64 00 10 4f |........|....d..O|
|00003600| 4e 4c 4e 00 64 02 95 02 | 2c 00 e1 02 38 00 f4 00 |NLN.d...|,...8...|
|00003610| 28 02 35 00 e1 04 54 68 | 65 20 00 00 15 bb c0 00 |(.5...Th|e ......|
|00003620| a1 00 64 00 10 4f 4e 4c | 4e 00 64 02 99 02 2c 00 |..d..ONL|N.d...,.|
|00003630| f4 02 38 01 4b 00 29 13 | 13 55 74 69 6c 69 74 69 |..8.K.).|.Utiliti|
|00003640| 65 73 20 63 6f 6d 70 6f | 6e 65 6e 74 00 00 15 10 |es compo|nent....|
|00003650| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 02 ac 02 |....d..O|NLN.d...|
|00003660| 2c 01 4c 02 38 01 fd 00 | 29 58 28 20 70 72 6f 76 |,.L.8...|)X( prov|
|00003670| 69 64 65 73 20 74 68 65 | 20 72 65 66 65 72 65 6e |ides the| referen|
|00003680| 63 65 2d 63 6f 75 6e 74 | 65 64 20 70 6f 69 6e 74 |ce-count|ed point|
|00003690| 65 72 20 00 06 ff fe e6 | 66 00 2e 00 04 00 00 00 |er .....|f.......|
|000036a0| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 02 d4 02 |....d..O|NLN.d...|
|000036b0| 38 00 e1 02 44 01 25 00 | 28 02 41 00 e1 10 74 65 |8...D.%.|(.A...te|
|000036c0| 6d 70 6c 61 74 65 20 63 | 6c 61 73 73 2c 20 00 00 |mplate c|lass, ..|
|000036d0| 03 00 16 00 06 ff fc b3 | 32 00 15 4c cc 00 a1 00 |........|2..L....|
|000036e0| 64 00 10 4f 4e 4c 4e 00 | 64 02 e4 02 38 01 26 02 |d..ONLN.|d...8.&.|
|000036f0| 44 01 7a 00 29 45 0e 46 | 57 5f 54 43 6f 75 6e 74 |D.z.)E.F|W_TCount|
|00003700| 65 64 50 74 72 00 03 00 | 10 00 06 ff fe e6 66 00 |edPtr...|......f.|
|00003710| 15 4c cc 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 02 |.L....d.|.ONLN.d.|
|00003720| f2 02 38 01 7a 02 44 01 | e0 00 29 54 1b 2c 20 74 |..8.z.D.|..)T., t|
|00003730| 6f 20 6d 61 6b 65 20 69 | 74 20 65 61 73 69 65 72 |o make i|t easier|
|00003740| 20 74 6f 20 75 73 65 20 | 00 00 04 02 00 00 15 99 | to use |........|
|00003750| 96 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 03 0d 02 |....d..O|NLN.d...|
|00003760| 38 01 e0 02 44 02 09 00 | 29 66 0a 72 65 66 65 72 |8...D...|)f.refer|
|00003770| 65 6e 63 65 20 00 06 00 | 00 00 00 00 2e 00 04 00 |ence ...|........|
|00003780| 00 01 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 03 |......d.|.ONLN.d.|
|00003790| 17 02 44 00 e1 02 50 01 | 05 00 28 02 4d 00 e1 08 |..D...P.|..(.M...|
|000037a0| 63 6f 75 6e 74 69 6e 67 | 00 00 04 00 00 00 15 ca |counting|........|
|000037b0| a0 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 03 1f 02 |....d..O|NLN.d...|
|000037c0| 44 01 05 02 50 01 f9 00 | 29 24 39 2e 20 54 68 65 |D...P...|)$9. The|
|000037d0| 20 67 6f 61 6c 20 6f 66 | 20 72 65 66 65 72 65 6e | goal of| referen|
|000037e0| 63 65 20 63 6f 75 6e 74 | 69 6e 67 20 69 73 20 74 |ce count|ing is t|
|000037f0| 6f 20 6b 65 65 70 20 74 | 72 61 63 6b 20 6f 66 20 |o keep t|rack of |
|00003800| 68 6f 77 20 00 00 06 ff | ff bb 27 00 a1 00 64 00 |how ....|..'...d.|
|00003810| 10 4f 4e 4c 4e 00 64 03 | 58 02 50 00 e1 02 5c 02 |.ONLN.d.|X.P...\.|
|00003820| 09 00 28 02 59 00 e1 44 | 6d 61 6e 79 20 74 69 6d |..(.Y..D|many tim|
|00003830| 65 73 20 61 6e 20 6f 62 | 6a 65 63 74 20 69 73 20 |es an ob|ject is |
|00003840| 72 65 66 65 72 65 6e 63 | 65 64 20 73 6f 20 61 6e |referenc|ed so an|
|00003850| 20 75 6e 72 65 66 65 72 | 65 6e 63 65 64 20 6f 62 | unrefer|enced ob|
|00003860| 6a 65 63 74 20 63 61 6e | 20 62 65 20 00 00 06 ff |ject can| be ....|
|00003870| ff 99 1e 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 03 |......d.|.ONLN.d.|
|00003880| 9c 02 5c 00 e1 02 68 02 | 09 00 2a 0c 43 61 75 74 |..\...h.|..*.Caut|
|00003890| 6f 6d 61 74 69 63 61 6c | 6c 79 20 64 65 6c 65 74 |omatical|ly delet|
|000038a0| 65 64 2e 20 46 6f 72 20 | 6d 6f 72 65 20 69 6e 66 |ed. For |more inf|
|000038b0| 6f 72 6d 61 74 69 6f 6e | 20 6f 6e 20 72 65 66 65 |ormation| on refe|
|000038c0| 72 65 6e 63 65 20 63 6f | 75 6e 74 69 6e 67 2c 20 |rence co|unting, |
|000038d0| 00 00 06 00 00 00 00 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|000038e0| 4e 00 64 03 df 02 68 00 | e1 02 74 00 f1 00 2a 0c |N.d...h.|..t...*.|
|000038f0| 04 73 65 65 20 00 15 d0 | 40 00 a1 00 64 00 10 4f |.see ...|@...d..O|
|00003900| 4e 4c 4e 00 64 03 e3 02 | 68 00 f1 02 74 01 93 00 |NLN.d...|h...t...|
|00003910| 29 10 20 d2 55 73 69 6e | 67 20 46 57 5f 54 43 6f |). .Usin|g FW_TCo|
|00003920| 75 6e 74 65 64 50 74 72 | d3 20 6f 6e 20 70 61 67 |untedPtr|. on pag|
|00003930| 65 20 33 00 15 3a 60 00 | a1 00 64 00 10 4f 4e 4c |e 3..:`.|..d..ONL|
|00003940| 4e 00 64 04 03 02 68 01 | 94 02 74 01 96 00 29 a3 |N.d...h.|..t...).|
|00003950| 01 2e 00 00 03 00 14 00 | 04 01 00 00 0d 00 0c 00 |........|........|
|00003960| a1 00 64 00 10 4f 4e 4c | 4e 00 64 04 05 02 7f 00 |..d..ONL|N.d.....|
|00003970| e1 02 8b 01 1a 00 28 02 | 88 00 e1 0b 41 64 64 69 |......(.|....Addi|
|00003980| 74 69 6f 6e 61 6c 20 00 | 15 2b c0 00 a1 00 64 00 |tional .|.+....d.|
|00003990| 10 4f 4e 4c 4e 00 64 04 | 10 02 7f 01 1b 02 8b 01 |.ONLN.d.|........|
|000039a0| 7e 00 29 3a 13 55 74 69 | 6c 69 74 69 65 73 20 63 |~.):.Uti|lities c|
|000039b0| 6f 6d 70 6f 6e 65 6e 74 | 00 00 15 cd 00 00 a1 00 |omponent|........|
|000039c0| 64 00 10 4f 4e 4c 4e 00 | 64 04 23 02 7f 01 7e 02 |d..ONLN.|d.#...~.|
|000039d0| 8b 01 b2 00 29 63 0b 20 | 69 6e 74 65 72 66 61 63 |....)c. |interfac|
|000039e0| 65 73 00 00 03 00 10 00 | 04 00 00 00 0d 00 0a 00 |es......|........|
|000039f0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 04 2f 02 8d 00 |..d..ONL|N.d./...|
|00003a00| e1 02 99 01 77 00 28 02 | 96 00 e1 23 54 68 65 72 |....w.(.|...#Ther|
|00003a10| 65 20 61 72 65 20 6e 6f | 20 61 64 64 69 74 69 6f |e are no| additio|
|00003a20| 6e 61 6c 20 69 6e 74 65 | 72 66 61 63 65 73 2e 00 |nal inte|rfaces..|
|00003a30| ff 0f 4a 00 00 00 00 03 | 18 02 64 00 11 02 ff 0c |..J.....|..d.....|
|00003a40| 00 ff ff ff ff 00 00 00 | 00 00 00 00 00 02 64 00 |........|......d.|
|00003a50| 00 03 18 00 00 00 00 00 | 00 00 01 00 0a 00 00 00 |........|........|
|00003a60| 00 03 18 02 64 00 0a 00 | 00 00 00 00 00 00 00 00 |....d...|........|
|00003a70| 34 00 6f 00 6c 00 79 01 | f8 00 2c 00 08 00 14 05 |4.o.l.y.|..,.....|
|00003a80| 54 69 6d 65 73 00 03 00 | 14 00 04 03 00 00 0d 00 |Times...|........|
|00003a90| 0e 00 2e 00 04 00 00 01 | 00 00 2b 6c 78 01 31 00 |........|..+lx.1.|
|00003aa0| 29 1b 13 55 74 69 6c 69 | 74 69 65 73 20 43 6f 6d |)..Utili|ties Com|
|00003ab0| 70 6f 6e 65 6e 74 00 00 | 20 00 7e 00 6c 00 7e 01 |ponent..| .~.l.~.|
|00003ac0| f8 00 34 02 b3 00 5a 02 | bd 01 f8 00 04 02 00 00 |..4...Z.|........|
|00003ad0| 0d 00 0a 00 28 02 b9 00 | 5a 01 32 00 29 1b 14 4f |....(...|Z.2.)..O|
|00003ae0| 50 46 20 52 65 66 65 72 | 65 6e 63 65 20 4d 61 6e |PF Refer|ence Man|
|00003af0| 75 61 6c 00 0a ff ff ff | ff ff ff ff ff 00 74 00 |ual.....|......t.|
|00003b00| 1e 00 7a 00 5a 00 83 00 | 63 00 7e 00 63 00 83 00 |..z.Z...|c.~.c...|
|00003b10| 5e 00 7e 00 5a 00 7a 00 | 5e 00 7e 00 63 00 70 00 |^.~.Z.z.|^.~.c.p.|
|00003b20| 1e 00 7a 00 5a 00 83 00 | 63 00 7e 00 63 00 83 00 |..z.Z...|c.~.c...|
|00003b30| 5e 00 7e 00 5a 00 7a 00 | 5e 00 7e 00 63 00 0a 00 |^.~.Z.z.|^.~.c...|
|00003b40| 00 00 00 00 00 00 00 00 | 34 00 90 00 cf 02 9a 01 |........|4.......|
|00003b50| f8 00 04 01 00 00 0d 00 | 0c 00 a1 00 64 00 10 4f |........|....d..O|
|00003b60| 4e 4c 4e 00 64 00 00 00 | 8f 00 cf 00 9b 01 51 00 |NLN.d...|......Q.|
|00003b70| 28 00 98 00 cf 16 43 6f | 6d 70 6f 6e 65 6e 74 20 |(.....Co|mponent |
|00003b80| 64 65 70 65 6e 64 65 6e | 63 69 65 73 00 00 2c 00 |dependen|cies..,.|
|00003b90| 0b 00 10 08 50 61 6c 61 | 74 69 6e 6f 00 00 03 00 |....Pala|tino....|
|00003ba0| 10 00 04 00 00 00 0d 00 | 0a 00 a1 00 64 00 10 4f |........|....d..O|
|00003bb0| 4e 4c 4e 00 64 00 17 00 | 9c 00 cf 00 a8 01 db 00 |NLN.d...|........|
|00003bc0| 2a 0d 3c 52 65 66 65 72 | 65 6e 63 65 2d 63 6f 75 |*.<Refer|ence-cou|
|00003bd0| 6e 74 65 64 20 70 6f 69 | 6e 74 65 72 73 20 61 72 |nted poi|nters ar|
|00003be0| 65 20 70 61 72 74 69 63 | 75 6c 61 72 6c 79 20 75 |e partic|ularly u|
|00003bf0| 73 65 66 75 6c 20 77 68 | 65 6e 20 74 68 65 20 00 |seful wh|en the .|
|00003c00| 06 ff ff fe 4a 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |....J...|d..ONLN.|
|00003c10| 64 00 53 00 a8 00 cf 00 | b4 01 f7 00 2a 0c 45 70 |d.S.....|....*.Ep|
|00003c20| 6f 69 6e 74 65 72 73 20 | 61 72 65 20 76 61 6c 75 |ointers |are valu|
|00003c30| 65 2d 62 61 73 65 64 2c | 20 61 75 74 6f 6d 61 74 |e-based,| automat|
|00003c40| 69 63 20 28 73 74 61 63 | 6b 2d 62 61 73 65 64 29 |ic (stac|k-based)|
|00003c50| 20 76 61 72 69 61 62 6c | 65 73 2e 20 54 68 69 73 | variabl|es. This|
|00003c60| 20 69 73 20 00 00 06 00 | 00 00 00 00 a1 00 64 00 | is ....|......d.|
|00003c70| 10 4f 4e 4c 4e 00 64 00 | 98 00 b4 00 cf 00 c0 01 |.ONLN.d.|........|
|00003c80| f4 00 2a 0c 41 74 72 75 | 65 20 62 65 63 61 75 73 |..*.Atru|e becaus|
|00003c90| 65 20 4f 50 46 20 74 61 | 6b 65 73 20 61 64 76 61 |e OPF ta|kes adva|
|00003ca0| 6e 74 61 67 65 20 6f 66 | 20 43 2b 2b 20 65 78 63 |ntage of| C++ exc|
|00003cb0| 65 70 74 69 6f 6e 20 68 | 61 6e 64 6c 69 6e 67 2e |eption h|andling.|
|00003cc0| 20 49 66 20 61 20 00 00 | a1 00 64 00 10 4f 4e 4c | If a ..|..d..ONL|
|00003cd0| 4e 00 64 00 d9 00 c0 00 | cf 00 cc 01 df 00 2a 0c |N.d.....|......*.|
|00003ce0| 3f 72 65 66 65 72 65 6e | 63 65 2d 63 6f 75 6e 74 |?referen|ce-count|
|00003cf0| 65 64 20 70 6f 69 6e 74 | 65 72 20 69 73 20 61 20 |ed point|er is a |
|00003d00| 73 74 61 63 6b 2d 62 61 | 73 65 64 20 76 61 72 69 |stack-ba|sed vari|
|00003d10| 61 62 6c 65 20 69 6e 20 | 61 20 67 69 76 65 6e 20 |able in |a given |
|00003d20| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 01 18 00 |....d..O|NLN.d...|
|00003d30| cc 00 cf 00 d8 01 da 00 | 2a 0c 3f 73 63 6f 70 65 |........|*.?scope|
|00003d40| 2c 20 61 6e 64 20 61 6e | 20 65 78 63 65 70 74 69 |, and an| excepti|
|00003d50| 6f 6e 20 69 73 20 74 68 | 72 6f 77 6e 20 6f 75 74 |on is th|rown out|
|00003d60| 20 6f 66 20 74 68 65 20 | 73 63 6f 70 65 2c 20 74 | of the |scope, t|
|00003d70| 68 65 6e 20 69 74 20 69 | 73 20 00 00 a1 00 64 00 |hen it i|s ....d.|
|00003d80| 10 4f 4e 4c 4e 00 64 01 | 57 00 d8 00 cf 00 e4 01 |.ONLN.d.|W.......|
|00003d90| ec 00 2a 0c 42 69 6d 70 | 6f 72 74 61 6e 74 20 74 |..*.Bimp|ortant t|
|00003da0| 68 61 74 20 74 68 65 20 | 64 65 73 74 72 75 63 74 |hat the |destruct|
|00003db0| 6f 72 20 6f 66 20 74 68 | 65 20 72 65 66 65 72 65 |or of th|e refere|
|00003dc0| 6e 63 65 2d 63 6f 75 6e | 74 65 64 20 70 6f 69 6e |nce-coun|ted poin|
|00003dd0| 74 65 72 20 69 73 20 00 | 06 ff ff a4 cf 00 a1 00 |ter is .|........|
|00003de0| 64 00 10 4f 4e 4c 4e 00 | 64 01 99 00 e4 00 cf 00 |d..ONLN.|d.......|
|00003df0| f0 01 f7 00 2a 0c 43 65 | 78 65 63 75 74 65 64 2e |....*.Ce|xecuted.|
|00003e00| 20 57 68 65 6e 20 4f 50 | 46 20 69 73 20 62 75 69 | When OP|F is bui|
|00003e10| 6c 74 20 77 69 74 68 20 | 63 6f 6d 70 69 6c 65 72 |lt with |compiler|
|00003e20| 73 20 74 68 61 74 20 64 | 6f 20 6e 6f 74 20 79 65 |s that d|o not ye|
|00003e30| 74 20 70 72 6f 76 69 64 | 65 20 00 00 06 00 00 00 |t provid|e ......|
|00003e40| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 01 dc 00 |....d..O|NLN.d...|
|00003e50| f0 00 cf 00 fc 01 d8 00 | 2a 0c 3a 65 78 63 65 70 |........|*.:excep|
|00003e60| 74 69 6f 6e 20 68 61 6e | 64 6c 69 6e 67 2c 20 4f |tion han|dling, O|
|00003e70| 50 46 20 75 73 65 73 20 | 74 68 65 20 4f 50 46 20 |PF uses |the OPF |
|00003e80| 45 78 63 65 70 74 69 6f | 6e 20 4c 69 62 72 61 72 |Exceptio|n Librar|
|00003e90| 79 20 74 6f 20 00 2e 00 | 04 00 00 00 00 00 a1 00 |y to ...|........|
|00003ea0| 64 00 10 4f 4e 4c 4e 00 | 64 02 16 00 fc 00 cf 01 |d..ONLN.|d.......|
|00003eb0| 08 01 81 00 2a 0c 26 70 | 72 6f 76 69 64 65 20 65 |....*.&p|rovide e|
|00003ec0| 78 63 65 70 74 69 6f 6e | 20 68 61 6e 64 6c 69 6e |xception| handlin|
|00003ed0| 67 20 65 6d 75 6c 61 74 | 69 6f 6e 2e 20 00 2c 00 |g emulat|ion. .,.|
|00003ee0| 0a 00 16 07 43 6f 75 72 | 69 65 72 00 03 00 16 00 |....Cour|ier.....|
|00003ef0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 02 3c 00 fc 01 |..d..ONL|N.d.<...|
|00003f00| 81 01 08 01 d5 00 29 b2 | 0e 46 57 5f 54 43 6f 75 |......).|.FW_TCou|
|00003f10| 6e 74 65 64 50 74 72 00 | 03 00 10 00 a1 00 64 00 |ntedPtr.|......d.|
|00003f20| 10 4f 4e 4c 4e 00 64 02 | 4a 00 fc 01 d5 01 08 01 |.ONLN.d.|J.......|
|00003f30| d7 00 29 54 01 20 00 00 | 2e 00 04 00 00 01 00 00 |..)T. ..|........|
|00003f40| a1 00 64 00 10 4f 4e 4c | 4e 00 64 02 4b 01 08 00 |..d..ONL|N.d.K...|
|00003f50| cf 01 14 01 e2 00 28 01 | 11 00 cf 3d 64 65 70 65 |......(.|...=depe|
|00003f60| 6e 64 73 20 75 70 6f 6e | 20 65 78 63 65 70 74 69 |nds upon| excepti|
|00003f70| 6f 6e 20 68 61 6e 64 6c | 69 6e 67 2c 20 73 6f 20 |on handl|ing, so |
|00003f80| 69 66 20 74 68 65 20 63 | 6f 6d 70 69 6c 65 72 20 |if the c|ompiler |
|00003f90| 64 6f 65 73 20 6e 6f 74 | 20 00 2e 00 04 00 00 00 |does not| .......|
|00003fa0| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 02 88 01 |....d..O|NLN.d...|
|00003fb0| 14 00 cf 01 20 01 4f 00 | 2a 0c 1c 73 75 70 70 6f |.... .O.|*..suppo|
|00003fc0| 72 74 20 65 78 63 65 70 | 74 69 6f 6e 20 68 61 6e |rt excep|tion han|
|00003fd0| 64 6c 69 6e 67 2c 20 00 | 03 00 16 00 a1 00 64 00 |dling, .|......d.|
|00003fe0| 10 4f 4e 4c 4e 00 64 02 | a4 01 14 01 4f 01 20 01 |.ONLN.d.|....O. .|
|00003ff0| a3 00 29 80 0e 46 57 5f | 54 43 6f 75 6e 74 65 64 |..)..FW_|TCounted|
|00004000| 50 74 72 00 03 00 10 00 | a1 00 64 00 10 4f 4e 4c |Ptr.....|..d..ONL|
|00004010| 4e 00 64 02 b2 01 14 01 | a3 01 20 01 f5 00 29 54 |N.d.....|.. ...)T|
|00004020| 12 20 64 65 70 65 6e 64 | 73 20 75 70 6f 6e 20 74 |. depend|s upon t|
|00004030| 68 65 20 00 06 ff ff 19 | 98 00 a1 00 64 00 10 4f |he .....|....d..O|
|00004040| 4e 4c 4e 00 64 02 c4 01 | 20 00 cf 01 2c 01 16 00 |NLN.d...| ...,...|
|00004050| 28 01 29 00 cf 0f 42 45 | 4c 20 63 6f 6d 70 6f 6e |(.)...BE|L compon|
|00004060| 65 6e 74 2c 20 00 03 00 | 16 00 06 ff fd 4c c8 00 |ent, ...|.....L..|
|00004070| 15 b3 30 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 02 |..0...d.|.ONLN.d.|
|00004080| d3 01 20 01 16 01 2c 01 | 46 00 29 47 08 46 57 45 |.. ...,.|F.)G.FWE|
|00004090| 78 63 4c 69 62 00 03 00 | 10 00 06 ff ff 19 98 00 |xcLib...|........|
|000040a0| 15 b3 30 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 02 |..0...d.|.ONLN.d.|
|000040b0| db 01 20 01 46 01 2c 01 | f7 00 29 30 28 2e 20 57 |.. .F.,.|..)0(. W|
|000040c0| 68 65 6e 20 4f 50 46 20 | 69 73 20 62 75 69 6c 74 |hen OPF |is built|
|000040d0| 20 77 69 74 68 20 63 6f | 6d 70 69 6c 65 72 73 20 | with co|mpilers |
|000040e0| 74 68 61 74 20 00 06 00 | 00 00 00 00 a1 00 64 00 |that ...|......d.|
|000040f0| 10 4f 4e 4c 4e 00 64 03 | 03 01 2c 00 cf 01 38 01 |.ONLN.d.|..,...8.|
|00004100| 4f 00 28 01 35 00 cf 1c | 73 75 70 70 6f 72 74 20 |O.(.5...|support |
|00004110| 65 78 63 65 70 74 69 6f | 6e 20 68 61 6e 64 6c 69 |exceptio|n handli|
|00004120| 6e 67 2c 20 00 00 03 00 | 16 00 a1 00 64 00 10 4f |ng, ....|....d..O|
|00004130| 4e 4c 4e 00 64 03 1f 01 | 2c 01 4f 01 38 01 a3 00 |NLN.d...|,.O.8...|
|00004140| 29 80 0e 46 57 5f 54 43 | 6f 75 6e 74 65 64 50 74 |)..FW_TC|ountedPt|
|00004150| 72 00 03 00 10 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |r.......|d..ONLN.|
|00004160| 64 03 2d 01 2c 01 a3 01 | 38 01 eb 00 29 54 12 20 |d.-.,...|8...)T. |
|00004170| 69 73 20 65 6e 74 69 72 | 65 6c 79 20 73 65 6c 66 |is entir|ely self|
|00004180| 2d 00 2e 00 04 00 00 01 | 00 00 a1 00 64 00 10 4f |-.......|....d..O|
|00004190| 4e 4c 4e 00 64 03 3f 01 | 38 00 cf 01 44 01 e6 00 |NLN.d.?.|8...D...|
|000041a0| 28 01 41 00 cf 3b 63 6f | 6e 74 61 69 6e 65 64 20 |(.A..;co|ntained |
|000041b0| 61 6e 64 20 69 73 20 6e | 6f 74 20 64 65 70 65 6e |and is n|ot depen|
|000041c0| 64 65 6e 74 20 6f 6e 20 | 61 6e 79 20 6f 74 68 65 |dent on |any othe|
|000041d0| 72 20 4f 50 46 20 63 6f | 6d 70 6f 6e 65 6e 74 73 |r OPF co|mponents|
|000041e0| 2e 00 03 00 14 00 04 01 | 00 00 0d 00 0f 00 a1 00 |........|........|
|000041f0| 64 00 10 4f 4e 4c 4e 00 | 64 03 7b 01 50 00 cf 01 |d..ONLN.|d.{.P...|
|00004200| 5f 01 8f 00 2a 1a 1d 55 | 73 69 6e 67 20 74 68 65 |_...*..U|sing the|
|00004210| 20 55 74 69 6c 69 74 69 | 65 73 20 43 6f 6d 70 6f | Utiliti|es Compo|
|00004220| 6e 65 6e 74 00 00 03 00 | 10 00 04 00 00 00 0d 00 |nent....|........|
|00004230| 0a 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 03 99 01 |....d..O|NLN.d...|
|00004240| 63 00 cf 01 6f 00 f2 00 | 2a 11 08 55 73 65 20 74 |c...o...|*..Use t|
|00004250| 68 65 20 00 15 2b 40 00 | a1 00 64 00 10 4f 4e 4c |he ..+@.|..d..ONL|
|00004260| 4e 00 64 03 a1 01 63 00 | f3 01 6f 01 4a 00 29 24 |N.d...c.|..o.J.)$|
|00004270| 13 55 74 69 6c 69 74 69 | 65 73 20 63 6f 6d 70 6f |.Utiliti|es compo|
|00004280| 6e 65 6e 74 00 00 15 7f | 80 00 a1 00 64 00 10 4f |nent....|....d..O|
|00004290| 4e 4c 4e 00 64 03 b4 01 | 63 01 4a 01 6f 01 ed 00 |NLN.d...|c.J.o...|
|000042a0| 29 57 24 20 74 6f 20 6b | 65 65 70 20 74 72 61 63 |)W$ to k|eep trac|
|000042b0| 6b 20 6f 66 20 68 6f 77 | 20 6d 61 6e 79 20 74 69 |k of how| many ti|
|000042c0| 6d 65 73 20 61 6e 20 00 | a1 00 64 00 10 4f 4e 4c |mes an .|..d..ONL|
|000042d0| 4e 00 64 03 d8 01 6f 00 | cf 01 7b 01 f6 00 28 01 |N.d...o.|..{...(.|
|000042e0| 78 00 cf 44 6f 62 6a 65 | 63 74 20 69 73 20 72 65 |x..Dobje|ct is re|
|000042f0| 66 65 72 65 6e 63 65 64 | 20 73 6f 20 61 6e 20 75 |ferenced| so an u|
|00004300| 6e 72 65 66 65 72 65 6e | 63 65 64 20 6f 62 6a 65 |nreferen|ced obje|
|00004310| 63 74 20 63 61 6e 20 62 | 65 20 61 75 74 6f 6d 61 |ct can b|e automa|
|00004320| 74 69 63 61 6c 6c 79 20 | 00 00 a1 00 64 00 10 4f |tically |....d..O|
|00004330| 4e 4c 4e 00 64 04 1c 01 | 7b 00 cf 01 87 00 f2 00 |NLN.d...|{.......|
|00004340| 2a 0c 08 64 65 6c 65 74 | 65 64 2e 00 03 00 14 00 |*..delet|ed......|
|00004350| 04 01 00 00 0d 00 0c 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|00004360| 4e 00 64 04 25 01 93 00 | cf 01 9f 01 44 00 2a 18 |N.d.%...|....D.*.|
|00004370| 17 53 75 62 63 6c 61 73 | 73 69 6e 67 20 77 69 74 |.Subclas|sing wit|
|00004380| 68 69 6e 20 74 68 65 20 | 00 00 15 2b 00 00 a1 00 |hin the |...+....|
|00004390| 64 00 10 4f 4e 4c 4e 00 | 64 04 3c 01 93 01 45 01 |d..ONLN.|d.<...E.|
|000043a0| 9f 01 a8 00 29 76 13 55 | 74 69 6c 69 74 69 65 73 |....)v.U|tilities|
|000043b0| 20 63 6f 6d 70 6f 6e 65 | 6e 74 00 00 03 00 10 00 | compone|nt......|
|000043c0| 04 00 00 00 0d 00 0a 00 | 06 ff ff 38 e2 00 2e 00 |........|...8....|
|000043d0| 04 00 00 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|000043e0| 64 04 50 01 a0 00 cf 01 | ac 01 43 00 28 01 a9 00 |d.P.....|..C.(...|
|000043f0| cf 1a 41 6c 74 68 6f 75 | 67 68 20 79 6f 75 20 63 |..Althou|gh you c|
|00004400| 61 6e 20 73 75 62 63 6c | 61 73 73 20 00 00 03 00 |an subcl|ass ....|
|00004410| 16 00 06 ff fd aa a6 00 | 15 63 88 00 a1 00 64 00 |........|.c....d.|
|00004420| 10 4f 4e 4c 4e 00 64 04 | 6a 01 a0 01 44 01 ac 01 |.ONLN.d.|j...D...|
|00004430| 98 00 29 75 0e 46 57 5f | 54 43 6f 75 6e 74 65 64 |..)u.FW_|TCounted|
|00004440| 50 74 72 00 03 00 10 00 | 06 ff ff 38 e2 00 15 63 |Ptr.....|...8...c|
|00004450| 88 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 04 78 01 |....d..O|NLN.d.x.|
|00004460| a0 01 98 01 ac 01 f8 00 | 29 54 18 2c 20 74 68 61 |........|)T., tha|
|00004470| 74 20 69 73 20 67 65 6e | 65 72 61 6c 6c 79 20 6e |t is gen|erally n|
|00004480| 6f 74 20 00 06 00 00 00 | 00 00 2e 00 04 00 00 01 |ot .....|........|
|00004490| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 04 90 01 |....d..O|NLN.d...|
|000044a0| ac 00 cf 01 b8 01 d4 00 | 28 01 b5 00 cf 3d 67 6f |........|(....=go|
|000044b0| 6f 64 20 43 2b 2b 20 73 | 74 79 6c 65 2e 20 49 6e |od C++ s|tyle. In|
|000044c0| 73 74 65 61 64 2c 20 79 | 6f 75 20 77 69 6c 6c 20 |stead, y|ou will |
|000044d0| 74 79 70 69 63 61 6c 6c | 79 20 62 65 20 69 6e 73 |typicall|y be ins|
|000044e0| 74 61 6e 74 69 61 74 69 | 6e 67 20 00 03 00 16 00 |tantiati|ng .....|
|000044f0| 2e 00 04 00 00 00 00 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|00004500| 4e 00 64 04 cd 01 b8 00 | cf 01 c4 01 23 00 2a 0c |N.d.....|....#.*.|
|00004510| 0e 46 57 5f 54 43 6f 75 | 6e 74 65 64 50 74 72 00 |.FW_TCou|ntedPtr.|
|00004520| 03 00 10 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 04 |......d.|.ONLN.d.|
|00004530| db 01 b8 01 23 01 c4 01 | 26 00 29 54 01 2e 00 00 |....#...|&.)T....|
|00004540| 03 00 14 00 04 01 00 00 | 0d 00 0c 00 2e 00 04 00 |........|........|
|00004550| 00 01 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 04 |......d.|.ONLN.d.|
|00004560| dd 01 d0 00 cf 01 dc 01 | 4a 00 28 01 d9 00 cf 19 |........|J.(.....|
|00004570| 49 6e 73 74 61 6e 74 69 | 61 74 69 6e 67 20 77 69 |Instanti|ating wi|
|00004580| 74 68 69 6e 20 74 68 65 | 20 00 15 26 80 00 a1 00 |thin the| ..&....|
|00004590| 64 00 10 4f 4e 4c 4e 00 | 64 04 f6 01 d0 01 4b 01 |d..ONLN.|d.....K.|
|000045a0| dc 01 ae 00 29 7c 13 55 | 74 69 6c 69 74 69 65 73 |....)|.U|tilities|
|000045b0| 20 63 6f 6d 70 6f 6e 65 | 6e 74 00 00 03 00 10 00 | compone|nt......|
|000045c0| 04 00 00 00 0d 00 0a 00 | 2e 00 04 00 00 00 00 00 |........|........|
|000045d0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 05 0a 01 dd 00 |..d..ONL|N.d.....|
|000045e0| cf 01 e9 01 41 00 28 01 | e6 00 cf 1a 59 6f 75 20 |....A.(.|....You |
|000045f0| 69 6e 73 74 61 6e 74 69 | 61 74 65 20 74 68 65 20 |instanti|ate the |
|00004600| 63 6c 61 73 73 20 00 00 | 03 00 16 00 a1 00 64 00 |class ..|......d.|
|00004610| 10 4f 4e 4c 4e 00 64 05 | 24 01 dd 01 41 01 e9 01 |.ONLN.d.|$...A...|
|00004620| 95 00 29 72 0e 46 57 5f | 54 43 6f 75 6e 74 65 64 |..)r.FW_|TCounted|
|00004630| 50 74 72 00 03 00 10 00 | a1 00 64 00 10 4f 4e 4c |Ptr.....|..d..ONL|
|00004640| 4e 00 64 05 32 01 dd 01 | 95 01 e9 01 98 00 29 54 |N.d.2...|......)T|
|00004650| 01 2e 00 00 03 00 14 00 | 04 01 00 00 0d 00 0c 00 |........|........|
|00004660| 2e 00 04 00 00 01 00 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|00004670| 4e 00 64 05 34 01 f5 00 | cf 02 01 01 19 00 28 01 |N.d.4...|......(.|
|00004680| fe 00 cf 0e 45 78 74 65 | 6e 64 69 6e 67 20 74 68 |....Exte|nding th|
|00004690| 65 20 00 00 15 29 00 00 | a1 00 64 00 10 4f 4e 4c |e ...)..|..d..ONL|
|000046a0| 4e 00 64 05 42 01 f5 01 | 1a 02 01 01 7d 00 29 4b |N.d.B...|....}.)K|
|000046b0| 13 55 74 69 6c 69 74 69 | 65 73 20 63 6f 6d 70 6f |.Utiliti|es compo|
|000046c0| 6e 65 6e 74 00 00 03 00 | 10 00 04 00 00 00 0d 00 |nent....|........|
|000046d0| 0a 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 05 56 02 |....d..O|NLN.d.V.|
|000046e0| 02 00 cf 02 0e 01 87 00 | 28 02 0b 00 cf 2c 49 74 |........|(....,It|
|000046f0| 20 69 73 20 67 65 6e 65 | 72 61 6c 6c 79 20 6e 6f | is gene|rally no|
|00004700| 74 20 6e 65 63 65 73 73 | 61 72 79 20 74 6f 20 65 |t necess|ary to e|
|00004710| 78 74 65 6e 64 20 74 68 | 65 20 00 00 15 67 00 00 |xtend th|e ...g..|
|00004720| a1 00 64 00 10 4f 4e 4c | 4e 00 64 05 82 02 02 01 |..d..ONL|N.d.....|
|00004730| 88 02 0e 01 df 00 29 b9 | 13 55 74 69 6c 69 74 69 |......).|.Utiliti|
|00004740| 65 73 20 63 6f 6d 70 6f | 6e 65 6e 74 00 00 15 bb |es compo|nent....|
|00004750| 40 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 05 95 02 |@...d..O|NLN.d...|
|00004760| 02 01 df 02 0e 01 e1 00 | 29 57 01 2e 00 00 03 00 |........|)W......|
|00004770| 14 00 04 01 00 00 0d 00 | 0c 00 a1 00 64 00 10 4f |........|....d..O|
|00004780| 4e 4c 4e 00 64 05 97 02 | 1a 00 cf 02 26 01 00 00 |NLN.d...|....&...|
|00004790| 28 02 23 00 cf 09 43 61 | 74 63 68 69 6e 67 20 00 |(.#...Ca|tching .|
|000047a0| 15 28 80 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 05 |.(....d.|.ONLN.d.|
|000047b0| a0 02 1a 01 01 02 26 01 | 64 00 29 32 13 55 74 69 |......&.|d.)2.Uti|
|000047c0| 6c 69 74 69 65 73 20 63 | 6f 6d 70 6f 6e 65 6e 74 |lities c|omponent|
|000047d0| 00 00 15 c9 c0 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|000047e0| 64 05 b3 02 1a 01 64 02 | 26 01 9c 00 29 63 0b 20 |d.....d.|&...)c. |
|000047f0| 65 78 63 65 70 74 69 6f | 6e 73 00 00 03 00 10 00 |exceptio|ns......|
|00004800| 04 00 00 00 0d 00 0a 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|00004810| 4e 00 64 05 bf 02 27 00 | cf 02 33 01 14 00 28 02 |N.d...'.|..3...(.|
|00004820| 30 00 cf 0f 4d 65 74 68 | 6f 64 73 20 69 6e 20 74 |0...Meth|ods in t|
|00004830| 68 65 20 00 15 b8 00 00 | a1 00 64 00 10 4f 4e 4c |he .....|..d..ONL|
|00004840| 4e 00 64 05 ce 02 27 01 | 14 02 33 01 6b 00 29 45 |N.d...'.|..3.k.)E|
|00004850| 13 55 74 69 6c 69 74 69 | 65 73 20 63 6f 6d 70 6f |.Utiliti|es compo|
|00004860| 6e 65 6e 74 00 00 15 0c | 40 00 a1 00 64 00 10 4f |nent....|@...d..O|
|00004870| 4e 4c 4e 00 64 05 e1 02 | 27 01 6c 02 33 01 dc 00 |NLN.d...|'.l.3...|
|00004880| 29 58 19 20 64 6f 20 6e | 6f 74 20 74 68 72 6f 77 |)X. do n|ot throw|
|00004890| 20 65 78 63 65 70 74 69 | 6f 6e 73 2e 00 00 03 00 | excepti|ons.....|
|000048a0| 14 00 04 01 00 00 0d 00 | 0c 00 a1 00 64 00 10 4f |........|....d..O|
|000048b0| 4e 4c 4e 00 64 05 fb 02 | 3f 00 cf 02 4b 01 66 00 |NLN.d...|?...K.f.|
|000048c0| 28 02 48 00 cf 1d 50 6c | 61 74 66 6f 72 6d 20 64 |(.H...Pl|atform d|
|000048d0| 65 70 65 6e 64 65 6e 63 | 69 65 73 20 69 6e 20 74 |ependenc|ies in t|
|000048e0| 68 65 20 00 15 73 80 00 | a1 00 64 00 10 4f 4e 4c |he ..s..|..d..ONL|
|000048f0| 4e 00 64 06 18 02 3f 01 | 67 02 4b 01 ca 00 29 98 |N.d...?.|g.K...).|
|00004900| 13 55 74 69 6c 69 74 69 | 65 73 20 63 6f 6d 70 6f |.Utiliti|es compo|
|00004910| 6e 65 6e 74 00 00 03 00 | 10 00 04 00 00 00 0d 00 |nent....|........|
|00004920| 0a 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 06 2c 02 |....d..O|NLN.d.,.|
|00004930| 4c 00 cf 02 58 01 e0 00 | 28 02 55 00 cf 3a 54 68 |L...X...|(.U..:Th|
|00004940| 65 72 65 20 61 72 65 20 | 6e 6f 20 70 6c 61 74 66 |ere are |no platf|
|00004950| 6f 72 6d 2d 64 65 70 65 | 6e 64 65 6e 74 20 6d 65 |orm-depe|ndent me|
|00004960| 74 68 6f 64 73 20 69 6e | 20 74 68 69 73 20 63 6f |thods in| this co|
|00004970| 6d 70 6f 6e 65 6e 74 2e | 00 00 ff 0c 62 00 00 00 |mponent.|....b...|
|00004980| 00 03 18 02 64 00 11 02 | ff 0c 00 ff ff ff ff 00 |....d...|........|
|00004990| 00 00 00 00 00 00 00 02 | 64 00 00 03 18 00 00 00 |........|d.......|
|000049a0| 00 00 00 00 01 00 0a 00 | 00 00 00 03 18 02 64 00 |........|......d.|
|000049b0| 0a 00 00 00 00 00 00 00 | 00 00 34 02 b4 00 6c 02 |........|..4...l.|
|000049c0| be 02 0a 00 2c 00 08 00 | 14 05 54 69 6d 65 73 00 |....,...|..Times.|
|000049d0| 03 00 14 00 04 02 00 00 | 0d 00 0a 00 2e 00 04 00 |........|........|
|000049e0| 00 01 00 00 15 fd 60 00 | 28 02 bb 01 8f 14 4f 50 |......`.|(.....OP|
|000049f0| 46 20 52 65 66 65 72 65 | 6e 63 65 20 4d 61 6e 75 |F Refere|nce Manu|
|00004a00| 61 6c 00 00 29 76 01 33 | 00 00 34 00 91 00 e1 02 |al..)v.3|..4.....|
|00004a10| 9b 02 0a 00 04 03 00 00 | 0d 00 12 00 15 fc 40 00 |........|......@.|
|00004a20| a1 00 64 00 10 4f 4e 4c | 4e 00 64 00 00 00 8f 01 |..d..ONL|N.d.....|
|00004a30| 57 00 a2 01 dd 00 28 00 | 9d 01 57 0e 46 57 5f 54 |W.....(.|..W.FW_T|
|00004a40| 43 6f 75 6e 74 65 64 50 | 74 72 00 00 15 fe 00 00 |CountedP|tr......|
|00004a50| a1 00 64 00 10 4f 4e 4c | 4e 00 64 00 0e 00 8f 01 |..d..ONL|N.d.....|
|00004a60| dd 00 a2 02 09 00 29 86 | 06 20 43 6c 61 73 73 00 |......).|. Class.|
|00004a70| 04 01 00 00 0d 00 0f 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|00004a80| 4e 00 64 00 15 00 ba 00 | e1 00 c9 01 32 00 28 00 |N.d.....|....2.(.|
|00004a90| c5 00 e1 0c 49 6e 74 72 | 6f 64 75 63 74 69 6f 6e |....Intr|oduction|
|00004aa0| 00 00 2c 00 0a 00 16 07 | 43 6f 75 72 69 65 72 00 |..,.....|Courier.|
|00004ab0| 03 00 16 00 04 00 00 00 | 0d 00 0a 00 2e 00 04 00 |........|........|
|00004ac0| 00 00 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 00 |......d.|.ONLN.d.|
|00004ad0| 22 00 ce 00 e1 00 da 01 | 35 00 2a 12 0e 46 57 5f |".......|5.*..FW_|
|00004ae0| 54 43 6f 75 6e 74 65 64 | 50 74 72 00 2c 00 0b 00 |TCounted|Ptr.,...|
|00004af0| 10 08 50 61 6c 61 74 69 | 6e 6f 00 00 03 00 10 00 |..Palati|no......|
|00004b00| a1 00 64 00 10 4f 4e 4c | 4e 00 64 00 30 00 ce 01 |..d..ONL|N.d.0...|
|00004b10| 35 00 da 01 fe 00 29 54 | 2c 20 70 72 6f 76 69 64 |5.....)T|, provid|
|00004b20| 65 73 20 61 20 6d 65 63 | 68 61 6e 69 73 6d 20 66 |es a mec|hanism f|
|00004b30| 6f 72 20 72 65 66 65 72 | 65 6e 63 65 2d 63 6f 75 |or refer|ence-cou|
|00004b40| 6e 74 65 64 20 00 2e 00 | 04 00 00 01 00 00 a1 00 |nted ...|........|
|00004b50| 64 00 10 4f 4e 4c 4e 00 | 64 00 5c 00 da 00 e1 00 |d..ONLN.|d.\.....|
|00004b60| e6 01 ef 00 28 00 e3 00 | e1 3f 70 6f 69 6e 74 65 |....(...|.?pointe|
|00004b70| 72 73 2e 20 41 20 72 65 | 66 65 72 65 6e 63 65 2d |rs. A re|ference-|
|00004b80| 63 6f 75 6e 74 65 64 20 | 70 6f 69 6e 74 65 72 20 |counted |pointer |
|00004b90| 70 6f 69 6e 74 73 20 74 | 6f 20 61 6e 20 6f 62 6a |points t|o an obj|
|00004ba0| 65 63 74 20 6f 66 20 61 | 20 00 2e 00 04 00 00 00 |ect of a| .......|
|00004bb0| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 00 9b 00 |....d..O|NLN.d...|
|00004bc0| e6 00 e1 00 f2 01 21 00 | 2a 0c 0f 73 70 65 63 69 |......!.|*..speci|
|00004bd0| 66 69 63 20 74 79 70 65 | 20 28 00 00 03 00 16 00 |fic type| (......|
|00004be0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 00 aa 00 e6 01 |..d..ONL|N.d.....|
|00004bf0| 21 00 f2 01 7b 00 29 40 | 0f 74 52 65 70 72 65 73 |!...{.)@|.tRepres|
|00004c00| 65 6e 74 61 74 69 6f 6e | 00 00 03 00 10 00 a1 00 |entation|........|
|00004c10| 64 00 10 4f 4e 4c 4e 00 | 64 00 b9 00 e6 01 7b 00 |d..ONLN.|d.....{.|
|00004c20| f2 02 06 00 29 5a 20 29 | 20 74 68 61 74 20 6d 75 |....)Z )| that mu|
|00004c30| 73 74 20 63 6f 6e 74 61 | 69 6e 20 61 6e 20 69 6e |st conta|in an in|
|00004c40| 74 65 72 6e 61 6c 20 00 | 2e 00 04 00 00 01 00 00 |ternal .|........|
|00004c50| a1 00 64 00 10 4f 4e 4c | 4e 00 64 00 d9 00 f2 00 |..d..ONL|N.d.....|
|00004c60| e1 00 fe 01 27 00 28 00 | fb 00 e1 10 72 65 66 65 |....'.(.|....refe|
|00004c70| 72 65 6e 63 65 20 63 6f | 75 6e 74 2e 00 00 2e 00 |rence co|unt.....|
|00004c80| 04 00 00 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00004c90| 64 00 ea 01 08 00 e1 01 | 14 00 f4 00 2a 16 04 55 |d.......|....*..U|
|00004ca0| 73 65 20 00 03 00 16 00 | a1 00 64 00 10 4f 4e 4c |se .....|..d..ONL|
|00004cb0| 4e 00 64 00 ee 01 08 00 | f4 01 14 01 48 00 29 13 |N.d.....|....H.).|
|00004cc0| 0e 46 57 5f 54 43 6f 75 | 6e 74 65 64 50 74 72 00 |.FW_TCou|ntedPtr.|
|00004cd0| 03 00 10 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 00 |......d.|.ONLN.d.|
|00004ce0| fc 01 08 01 48 01 14 01 | f8 00 29 54 2a 20 74 6f |....H...|..)T* to|
|00004cf0| 20 61 64 6a 75 73 74 20 | 74 68 65 20 72 65 66 65 | adjust |the refe|
|00004d00| 72 65 6e 63 65 20 63 6f | 75 6e 74 20 69 6e 73 69 |rence co|unt insi|
|00004d10| 64 65 20 74 68 65 20 00 | 2e 00 04 00 00 01 00 00 |de the .|........|
|00004d20| a1 00 64 00 10 4f 4e 4c | 4e 00 64 01 26 01 14 00 |..d..ONL|N.d.&...|
|00004d30| e1 01 20 01 e5 00 28 01 | 1d 00 e1 3b 72 65 70 72 |.. ...(.|...;repr|
|00004d40| 65 73 65 6e 74 61 74 69 | 6f 6e 20 6f 62 6a 65 63 |esentati|on objec|
|00004d50| 74 2e 20 57 68 65 6e 20 | 61 20 72 65 66 65 72 65 |t. When |a refere|
|00004d60| 6e 63 65 2d 63 6f 75 6e | 74 65 64 20 70 6f 69 6e |nce-coun|ted poin|
|00004d70| 74 65 72 20 69 73 3a 00 | a1 00 64 00 10 4f 4e 4c |ter is:.|..d..ONL|
|00004d80| 4e 00 64 01 62 01 2a 00 | f3 01 36 00 f9 00 2b 12 |N.d.b.*.|..6...+.|
|00004d90| 16 01 a5 00 06 ff ff 9a | 1d 00 15 4c cd 00 a1 00 |........|...L....|
|00004da0| 64 00 10 4f 4e 4c 4e 00 | 64 01 64 01 2a 00 fe 01 |d..ONLN.|d.d.*...|
|00004db0| 36 01 f8 00 29 0b 3c 63 | 6f 70 69 65 64 2c 20 74 |6...).<c|opied, t|
|00004dc0| 68 65 20 72 65 66 65 72 | 65 6e 63 65 20 63 6f 75 |he refer|ence cou|
|00004dd0| 6e 74 20 69 6e 20 74 68 | 65 20 72 65 70 72 65 73 |nt in th|e repres|
|00004de0| 65 6e 74 61 74 69 6f 6e | 20 6f 62 6a 65 63 74 20 |entation| object |
|00004df0| 69 73 20 00 06 00 00 00 | 00 00 15 4c cd 00 a1 00 |is .....|...L....|
|00004e00| 64 00 10 4f 4e 4c 4e 00 | 64 01 a0 01 36 00 fe 01 |d..ONLN.|d...6...|
|00004e10| 42 01 37 00 2a 0c 0c 69 | 6e 63 72 65 6d 65 6e 74 |B.7.*..i|ncrement|
|00004e20| 65 64 2e 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 01 |ed....d.|.ONLN.d.|
|00004e30| ad 01 4c 00 f3 01 58 00 | f9 00 28 01 55 00 f3 01 |..L...X.|..(.U...|
|00004e40| a5 00 15 4c cd 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |...L....|d..ONLN.|
|00004e50| 64 01 af 01 4c 00 fe 01 | 58 01 f5 00 29 0b 3a 64 |d...L...|X...).:d|
|00004e60| 65 6c 65 74 65 64 2c 20 | 74 68 65 20 72 65 66 65 |eleted, |the refe|
|00004e70| 72 65 6e 63 65 20 63 6f | 75 6e 74 20 69 6e 20 74 |rence co|unt in t|
|00004e80| 68 65 20 72 65 70 72 65 | 73 65 6e 74 61 74 69 6f |he repre|sentatio|
|00004e90| 6e 20 6f 62 6a 65 63 74 | 20 00 15 4c cd 00 a1 00 |n object| ..L....|
|00004ea0| 64 00 10 4f 4e 4c 4e 00 | 64 01 e9 01 58 00 fe 01 |d..ONLN.|d...X...|
|00004eb0| 64 01 43 00 2a 0c 0f 69 | 73 20 64 65 63 72 65 6d |d.C.*..i|s decrem|
|00004ec0| 65 6e 74 65 64 2e 00 00 | 06 ff ff f1 c3 00 a1 00 |ented...|........|
|00004ed0| 64 00 10 4f 4e 4c 4e 00 | 64 01 f9 01 6e 00 e1 01 |d..ONLN.|d...n...|
|00004ee0| 7a 02 09 00 28 01 77 00 | e1 44 44 69 73 70 6f 73 |z...(.w.|.DDispos|
|00004ef0| 69 6e 67 20 6f 66 20 61 | 20 73 69 6e 67 6c 65 20 |ing of a| single |
|00004f00| 72 65 66 65 72 65 6e 63 | 65 2d 63 6f 75 6e 74 65 |referenc|e-counte|
|00004f10| 64 20 70 6f 69 6e 74 65 | 72 20 64 6f 65 73 20 6e |d pointe|r does n|
|00004f20| 6f 74 20 64 65 6c 65 74 | 65 20 74 68 65 20 00 00 |ot delet|e the ..|
|00004f30| 06 00 00 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00004f40| 64 02 3d 01 7a 00 e1 01 | 86 02 07 00 2a 0c 48 72 |d.=.z...|....*.Hr|
|00004f50| 65 70 72 65 73 65 6e 74 | 61 74 69 6f 6e 20 6f 62 |epresent|ation ob|
|00004f60| 6a 65 63 74 2c 20 69 66 | 20 69 74 20 69 73 20 73 |ject, if| it is s|
|00004f70| 74 69 6c 6c 20 62 65 69 | 6e 67 20 61 63 63 65 73 |till bei|ng acces|
|00004f80| 73 65 64 20 62 79 20 6f | 74 68 65 72 20 72 65 66 |sed by o|ther ref|
|00004f90| 65 72 65 6e 63 65 2d 00 | a1 00 64 00 10 4f 4e 4c |erence-.|..d..ONL|
|00004fa0| 4e 00 64 02 85 01 86 00 | e1 01 92 01 ef 00 2a 0c |N.d.....|......*.|
|00004fb0| 3d 63 6f 75 6e 74 65 64 | 20 70 6f 69 6e 74 65 72 |=counted| pointer|
|00004fc0| 73 2e 20 57 68 65 6e 20 | 74 68 65 20 72 65 66 65 |s. When |the refe|
|00004fd0| 72 65 6e 63 65 20 63 6f | 75 6e 74 20 67 6f 65 73 |rence co|unt goes|
|00004fe0| 20 74 6f 20 7a 65 72 6f | 2c 20 74 68 65 20 00 00 | to zero|, the ..|
|00004ff0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 02 c2 01 92 00 |..d..ONL|N.d.....|
|00005000| e1 01 9e 01 6c 00 2a 0c | 21 72 65 70 72 65 73 65 |....l.*.|!represe|
|00005010| 6e 74 61 74 69 6f 6e 20 | 6f 62 6a 65 63 74 20 69 |ntation |object i|
|00005020| 73 20 64 65 6c 65 74 65 | 64 2e 00 00 03 00 14 00 |s delete|d.......|
|00005030| 04 01 00 00 0d 00 0c 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|00005040| 4e 00 64 02 e4 01 a9 00 | e1 01 b5 01 19 00 2a 17 |N.d.....|......*.|
|00005050| 0b 48 65 61 64 65 72 20 | 66 69 6c 65 00 00 03 00 |.Header |file....|
|00005060| 16 00 04 00 00 00 0d 00 | 0a 00 2e 00 04 00 00 00 |........|........|
|00005070| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 02 f0 01 |....d..O|NLN.d...|
|00005080| b7 00 e1 01 c3 01 1d 00 | 2a 0e 0a 46 57 43 6f 75 |........|*..FWCou|
|00005090| 50 74 72 2e 68 00 03 00 | 14 00 04 01 00 00 0d 00 |Ptr.h...|........|
|000050a0| 0c 00 2e 00 04 00 00 01 | 00 00 a1 00 64 00 10 4f |........|....d..O|
|000050b0| 4e 4c 4e 00 64 02 fb 01 | ce 00 e1 01 da 01 0d 00 |NLN.d...|........|
|000050c0| 2a 17 08 48 65 72 69 74 | 61 67 65 00 03 00 16 00 |*..Herit|age.....|
|000050d0| 0d 00 0a 00 2e 00 04 00 | 00 00 00 00 a1 00 64 00 |........|......d.|
|000050e0| 10 4f 4e 4c 4e 00 64 03 | 04 01 df 00 e1 01 eb 01 |.ONLN.d.|........|
|000050f0| 43 00 2a 11 0e 46 57 5f | 54 43 6f 75 6e 74 65 64 |C.*..FW_|TCounted|
|00005100| 50 74 72 00 03 00 14 00 | 0d 00 0f 00 2e 00 04 00 |Ptr.....|........|
|00005110| 00 01 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 03 |......d.|.ONLN.d.|
|00005120| 13 01 f4 00 e1 02 03 01 | 09 00 2a 17 06 55 73 69 |........|..*..Usi|
|00005130| 6e 67 20 00 15 ee 00 00 | a1 00 64 00 10 4f 4e 4c |ng .....|..d..ONL|
|00005140| 4e 00 64 03 19 01 f4 01 | 09 02 03 01 7e 00 29 28 |N.d.....|....~.)(|
|00005150| 0e 46 57 5f 54 43 6f 75 | 6e 74 65 64 50 74 72 00 |.FW_TCou|ntedPtr.|
|00005160| 03 00 10 00 04 00 00 00 | 0d 00 0a 00 06 ff ff 8e |........|........|
|00005170| 38 00 2e 00 04 00 00 00 | 00 00 a1 00 64 00 10 4f |8.......|....d..O|
|00005180| 4e 4c 4e 00 64 03 28 02 | 08 00 e1 02 14 00 f3 00 |NLN.d.(.|........|
|00005190| 28 02 11 00 e1 04 55 73 | 65 20 00 00 03 00 16 00 |(.....Us|e ......|
|000051a0| 06 ff fe aa a8 00 15 0e | 38 00 a1 00 64 00 10 4f |........|8...d..O|
|000051b0| 4e 4c 4e 00 64 03 2c 02 | 08 00 f4 02 14 01 48 00 |NLN.d.,.|......H.|
|000051c0| 29 13 0e 46 57 5f 54 43 | 6f 75 6e 74 65 64 50 74 |)..FW_TC|ountedPt|
|000051d0| 72 00 03 00 10 00 06 ff | ff 8e 38 00 15 0e 38 00 |r.......|..8...8.|
|000051e0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 03 3a 02 08 01 |..d..ONL|N.d.:...|
|000051f0| 48 02 14 02 0a 00 29 54 | 2e 20 66 6f 72 20 63 6c |H.....)T|. for cl|
|00005200| 61 73 73 65 73 20 77 68 | 6f 73 65 20 69 6e 73 74 |asses wh|ose inst|
|00005210| 61 6e 63 65 73 20 61 72 | 65 20 6f 66 74 65 6e 20 |ances ar|e often |
|00005220| 63 6f 70 69 65 64 20 00 | 06 00 00 00 00 00 2e 00 |copied .|........|
|00005230| 04 00 00 01 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00005240| 64 03 68 02 14 00 e1 02 | 20 01 ee 00 28 02 1d 00 |d.h.....| ...(...|
|00005250| e1 3d 74 68 72 6f 75 67 | 68 20 61 73 73 69 67 6e |.=throug|h assign|
|00005260| 6d 65 6e 74 20 6f 72 20 | 70 61 72 61 6d 65 74 65 |ment or |paramete|
|00005270| 72 20 70 61 73 73 69 6e | 67 2c 20 70 61 72 74 69 |r passin|g, parti|
|00005280| 63 75 6c 61 72 6c 79 20 | 69 66 20 74 68 65 20 00 |cularly |if the .|
|00005290| a1 00 64 00 10 4f 4e 4c | 4e 00 64 03 a5 02 20 00 |..d..ONL|N.d... .|
|000052a0| e1 02 2c 01 eb 00 2a 0c | 3e 6f 62 6a 65 63 74 73 |..,...*.|>objects|
|000052b0| 20 61 72 65 20 73 6f 20 | 6c 61 72 67 65 20 6f 72 | are so |large or|
|000052c0| 20 63 6f 6d 70 6c 65 78 | 20 74 68 61 74 20 63 6f | complex| that co|
|000052d0| 70 79 69 6e 67 20 69 73 | 20 65 78 70 65 6e 73 69 |pying is| expensi|
|000052e0| 76 65 2e 20 49 6e 20 00 | a1 00 64 00 10 4f 4e 4c |ve. In .|..d..ONL|
|000052f0| 4e 00 64 03 e3 02 2c 00 | e1 02 38 01 f9 00 2a 0c |N.d...,.|..8...*.|
|00005300| 3f 61 64 64 69 74 69 6f | 6e 2c 20 75 73 65 20 72 |?additio|n, use r|
|00005310| 65 66 65 72 65 6e 63 65 | 2d 63 6f 75 6e 74 65 64 |eference|-counted|
|00005320| 20 70 6f 69 6e 74 65 72 | 73 20 77 68 65 6e 20 6d | pointer|s when m|
|00005330| 75 6c 74 69 70 6c 65 20 | 6c 6f 67 69 63 61 6c 20 |ultiple |logical |
|00005340| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 04 22 02 |....d..O|NLN.d.".|
|00005350| 38 00 e1 02 44 01 f8 00 | 2a 0c 42 63 6f 70 69 65 |8...D...|*.Bcopie|
|00005360| 73 20 6f 66 20 61 6e 20 | 6f 62 6a 65 63 74 20 6d |s of an |object m|
|00005370| 69 67 68 74 20 65 78 69 | 73 74 2c 20 74 68 6f 75 |ight exi|st, thou|
|00005380| 67 68 20 74 68 65 20 64 | 61 74 61 20 69 74 73 65 |gh the d|ata itse|
|00005390| 6c 66 20 63 61 6e 6e 6f | 74 20 62 65 20 00 a1 00 |lf canno|t be ...|
|000053a0| 64 00 10 4f 4e 4c 4e 00 | 64 04 64 02 44 00 e1 02 |d..ONLN.|d.d.D...|
|000053b0| 50 01 01 00 2a 0c 07 63 | 6f 70 69 65 64 2e 00 00 |P...*..c|opied...|
|000053c0| 03 00 14 00 04 01 00 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|000053d0| 4e 00 64 04 6c 02 5a 00 | e1 02 66 01 17 00 2a 16 |N.d.l.Z.|..f...*.|
|000053e0| 0c 4f 76 65 72 76 69 65 | 77 20 6f 66 20 00 15 eb |.Overvie|w of ...|
|000053f0| 40 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 04 78 02 |@...d..O|NLN.d.x.|
|00005400| 5a 01 17 02 66 01 66 00 | 29 36 12 72 65 66 65 72 |Z...f.f.|)6.refer|
|00005410| 65 6e 63 65 20 63 6f 75 | 6e 74 69 6e 67 00 03 00 |ence cou|nting...|
|00005420| 10 00 04 00 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00005430| 64 04 8b 02 64 00 e1 02 | 70 01 f6 00 28 02 6d 00 |d...d...|p...(.m.|
|00005440| e1 3b 53 75 70 70 6f 73 | 65 20 79 6f 75 20 61 72 |.;Suppos|e you ar|
|00005450| 65 20 64 65 76 65 6c 6f | 70 69 6e 67 20 61 20 70 |e develo|ping a p|
|00005460| 61 72 74 20 77 68 65 72 | 65 20 79 6f 75 20 77 69 |art wher|e you wi|
|00005470| 6c 6c 20 68 61 76 65 20 | 6d 61 6e 79 20 00 a1 00 |ll have |many ...|
|00005480| 64 00 10 4f 4e 4c 4e 00 | 64 04 c6 02 70 00 e1 02 |d..ONLN.|d...p...|
|00005490| 7c 01 f5 00 2a 0c 41 73 | 74 72 69 6e 67 20 6f 62 ||...*.As|tring ob|
|000054a0| 6a 65 63 74 73 20 77 68 | 69 63 68 20 6d 69 67 68 |jects wh|ich migh|
|000054b0| 74 20 63 6f 6e 74 61 69 | 6e 20 61 20 73 6d 61 6c |t contai|n a smal|
|000054c0| 6c 20 73 65 74 20 6f 66 | 20 73 74 72 69 6e 67 20 |l set of| string |
|000054d0| 76 61 6c 75 65 73 2e 20 | 00 00 2e 00 04 00 00 00 |values. |........|
|000054e0| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 05 07 02 |....d..O|NLN.d...|
|000054f0| 7c 00 e1 02 88 01 96 00 | 2a 0c 29 41 73 73 75 6d ||.......|*.)Assum|
|00005500| 65 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 20 63 72 |e you wa|nt to cr|
|00005510| 65 61 74 65 20 61 20 73 | 74 72 69 6e 67 20 63 6c |eate a s|tring cl|
|00005520| 61 73 73 2c 00 00 03 00 | 16 00 a1 00 64 00 10 4f |ass,....|....d..O|
|00005530| 4e 4c 4e 00 64 05 30 02 | 7c 01 96 02 88 01 c6 00 |NLN.d.0.||.......|
|00005540| 29 b5 08 20 43 53 74 72 | 69 6e 67 00 03 00 10 00 |).. CStr|ing.....|
|00005550| a1 00 64 00 10 4f 4e 4c | 4e 00 64 05 38 02 7c 01 |..d..ONL|N.d.8.|.|
|00005560| c6 02 88 01 f3 00 29 30 | 0b 2c 20 74 68 61 74 20 |......)0|., that |
|00005570| 63 61 6e 20 00 00 2e 00 | 04 00 00 01 00 00 a1 00 |can ....|........|
|00005580| 64 00 10 4f 4e 4c 4e 00 | 64 05 43 02 88 00 e1 02 |d..ONLN.|d.C.....|
|00005590| 94 02 01 00 28 02 91 00 | e1 40 6d 69 6e 69 6d 69 |....(...|.@minimi|
|000055a0| 7a 65 20 73 74 6f 72 61 | 67 65 20 72 65 71 75 69 |ze stora|ge requi|
|000055b0| 72 65 6d 65 6e 74 73 20 | 62 79 20 73 68 61 72 69 |rements |by shari|
|000055c0| 6e 67 20 74 68 65 20 72 | 65 70 72 65 73 65 6e 74 |ng the r|epresent|
|000055d0| 61 74 69 6f 6e 20 66 6f | 72 20 00 00 ff 0d 92 00 |ation fo|r ......|
|000055e0| 00 00 00 03 18 02 64 00 | 11 02 ff 0c 00 ff ff ff |......d.|........|
|000055f0| ff 00 00 00 00 00 00 00 | 00 02 64 00 00 03 18 00 |........|..d.....|
|00005600| 00 00 00 00 00 00 01 00 | 0a 00 00 00 00 03 18 02 |........|........|
|00005610| 64 00 0a 00 00 00 00 00 | 00 00 00 00 34 00 6f 00 |d.......|....4.o.|
|00005620| 6c 00 79 01 f8 00 2c 00 | 08 00 14 05 54 69 6d 65 |l.y...,.|....Time|
|00005630| 73 00 03 00 14 00 04 03 | 00 00 0d 00 0e 00 2e 00 |s.......|........|
|00005640| 04 00 00 01 00 00 2b 6c | 78 01 31 00 29 1b 13 55 |......+l|x.1.)..U|
|00005650| 74 69 6c 69 74 69 65 73 | 20 43 6f 6d 70 6f 6e 65 |tilities| Compone|
|00005660| 6e 74 00 00 20 00 7e 00 | 6c 00 7e 01 f8 00 34 02 |nt.. .~.|l.~...4.|
|00005670| b3 00 5a 02 bd 01 f8 00 | 04 02 00 00 0d 00 0a 00 |..Z.....|........|
|00005680| 28 02 b9 00 5a 01 34 00 | 29 1b 14 4f 50 46 20 52 |(...Z.4.|)..OPF R|
|00005690| 65 66 65 72 65 6e 63 65 | 20 4d 61 6e 75 61 6c 00 |eference| Manual.|
|000056a0| 0a ff ff ff ff ff ff ff | ff 00 74 00 1e 00 7a 00 |........|..t...z.|
|000056b0| 5a 00 83 00 63 00 7e 00 | 63 00 83 00 5e 00 7e 00 |Z...c.~.|c...^.~.|
|000056c0| 5a 00 7a 00 5e 00 7e 00 | 63 00 70 00 1e 00 7a 00 |Z.z.^.~.|c.p...z.|
|000056d0| 5a 00 83 00 63 00 7e 00 | 63 00 83 00 5e 00 7e 00 |Z...c.~.|c...^.~.|
|000056e0| 5a 00 7a 00 5e 00 7e 00 | 63 00 0a 00 00 00 00 00 |Z.z.^.~.|c.......|
|000056f0| 00 00 00 00 34 00 90 00 | cf 02 9a 01 f8 00 2c 00 |....4...|......,.|
|00005700| 0b 00 10 08 50 61 6c 61 | 74 69 6e 6f 00 00 03 00 |....Pala|tino....|
|00005710| 10 00 04 00 00 00 2e 00 | 04 00 00 00 00 00 a1 00 |........|........|
|00005720| 64 00 10 4f 4e 4c 4e 00 | 64 00 00 00 8d 00 cf 00 |d..ONLN.|d.......|
|00005730| 99 01 43 00 28 00 96 00 | cf 19 74 68 65 20 73 74 |..C.(...|..the st|
|00005740| 72 69 6e 67 20 64 61 74 | 61 20 77 68 65 6e 20 74 |ring dat|a when t|
|00005750| 77 6f 20 00 2c 00 0a 00 | 16 07 43 6f 75 72 69 65 |wo .,...|..Courie|
|00005760| 72 00 03 00 16 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |r.......|d..ONLN.|
|00005770| 64 00 19 00 8d 01 43 00 | 99 01 6d 00 29 74 07 43 |d.....C.|..m.)t.C|
|00005780| 53 74 72 69 6e 67 00 00 | 03 00 10 00 a1 00 64 00 |String..|......d.|
|00005790| 10 4f 4e 4c 4e 00 64 00 | 20 00 8d 01 6d 00 99 01 |.ONLN.d.| ...m...|
|000057a0| f8 00 29 2a 21 20 6f 62 | 6a 65 63 74 73 20 63 6f |..)*! ob|jects co|
|000057b0| 6e 74 61 69 6e 20 74 68 | 65 20 73 61 6d 65 20 73 |ntain th|e same s|
|000057c0| 74 72 69 6e 67 20 00 00 | 2e 00 04 00 00 01 00 00 |tring ..|........|
|000057d0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 00 41 00 99 00 |..d..ONL|N.d.A...|
|000057e0| cf 00 a5 01 ea 00 28 00 | a2 00 cf 42 64 61 74 61 |......(.|...Bdata|
|000057f0| 2e 20 54 68 65 20 72 65 | 70 72 65 73 65 6e 74 61 |. The re|presenta|
|00005800| 74 69 6f 6e 20 69 73 20 | 69 74 73 65 6c 66 20 61 |tion is |itself a|
|00005810| 6e 20 6f 62 6a 65 63 74 | 2c 20 6d 61 6e 61 67 69 |n object|, managi|
|00005820| 6e 67 20 74 68 65 20 73 | 68 61 72 65 64 20 00 00 |ng the s|hared ..|
|00005830| 06 ff ff 88 93 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|00005840| 64 00 83 00 a5 00 cf 00 | b1 01 f7 00 2a 0c 44 64 |d.......|....*.Dd|
|00005850| 61 74 61 20 61 6e 64 20 | 61 6e 20 61 73 73 6f 63 |ata and |an assoc|
|00005860| 69 61 74 65 64 20 72 65 | 66 65 72 65 6e 63 65 20 |iated re|ference |
|00005870| 63 6f 75 6e 74 2e 20 59 | 6f 75 20 77 69 6c 6c 20 |count. Y|ou will |
|00005880| 6e 65 65 64 20 74 6f 20 | 64 65 73 69 67 6e 20 74 |need to |design t|
|00005890| 77 6f 20 00 06 00 00 00 | 00 00 2e 00 04 00 00 00 |wo .....|........|
|000058a0| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 00 c7 00 |....d..O|NLN.d...|
|000058b0| b1 00 cf 00 bd 00 f3 00 | 2a 0c 09 63 6c 61 73 73 |........|*..class|
|000058c0| 65 73 3a 20 00 00 03 00 | 16 00 a1 00 64 00 10 4f |es: ....|....d..O|
|000058d0| 4e 4c 4e 00 64 00 d0 00 | b1 00 f3 00 bd 01 1d 00 |NLN.d...|........|
|000058e0| 29 24 07 43 53 74 72 69 | 6e 67 00 00 03 00 10 00 |)$.CStri|ng......|
|000058f0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 00 d7 00 b1 01 |..d..ONL|N.d.....|
|00005900| 1d 00 bd 01 32 00 29 2a | 05 20 61 6e 64 20 00 00 |....2.)*|. and ..|
|00005910| 03 00 16 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 00 |......d.|.ONLN.d.|
|00005920| dc 00 b1 01 32 00 bd 01 | 6e 00 29 15 0a 43 53 74 |....2...|n.)..CSt|
|00005930| 72 69 6e 67 52 65 70 00 | 03 00 10 00 a1 00 64 00 |ringRep.|......d.|
|00005940| 10 4f 4e 4c 4e 00 64 00 | e6 00 b1 01 6e 00 bd 01 |.ONLN.d.|....n...|
|00005950| 71 00 29 3c 01 2e 00 00 | a1 00 64 00 10 4f 4e 4c |q.)<....|..d..ONL|
|00005960| 4e 00 64 00 e8 00 c7 00 | cf 00 d3 01 04 00 28 00 |N.d.....|......(.|
|00005970| d0 00 cf 0d 49 6e 20 74 | 68 65 20 63 6c 61 73 73 |....In t|he class|
|00005980| 20 00 03 00 16 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 | .......|d..ONLN.|
|00005990| 64 00 f5 00 c7 01 04 00 | d3 01 2e 00 29 35 07 43 |d.......|....)5.C|
|000059a0| 53 74 72 69 6e 67 00 00 | 03 00 10 00 a1 00 64 00 |String..|......d.|
|000059b0| 10 4f 4e 4c 4e 00 64 00 | fc 00 c7 01 2e 00 d3 01 |.ONLN.d.|........|
|000059c0| f8 00 29 2a 2b 2c 20 69 | 6d 70 6c 65 6d 65 6e 74 |..)*+, i|mplement|
|000059d0| 20 74 68 65 20 61 73 73 | 69 67 6e 6d 65 6e 74 20 | the ass|ignment |
|000059e0| 6f 70 65 72 61 74 6f 72 | 20 28 61 6d 6f 6e 67 20 |operator| (among |
|000059f0| 00 00 2e 00 04 00 00 01 | 00 00 a1 00 64 00 10 4f |........|....d..O|
|00005a00| 4e 4c 4e 00 64 01 27 00 | d3 00 cf 00 df 01 e1 00 |NLN.d.'.|........|
|00005a10| 28 00 dc 00 cf 40 6f 74 | 68 65 72 73 29 20 73 75 |(....@ot|hers) su|
|00005a20| 63 68 20 74 68 61 74 20 | 61 73 73 69 67 6e 69 6e |ch that |assignin|
|00005a30| 67 20 6f 6e 65 20 73 74 | 72 69 6e 67 20 74 6f 20 |g one st|ring to |
|00005a40| 61 6e 6f 74 68 65 72 20 | 73 74 72 69 6e 67 20 63 |another |string c|
|00005a50| 61 75 73 65 73 20 00 00 | a1 00 64 00 10 4f 4e 4c |auses ..|..d..ONL|
|00005a60| 4e 00 64 01 67 00 df 00 | cf 00 eb 01 50 00 2a 0c |N.d.g...|....P.*.|
|00005a70| 1e 73 68 61 72 69 6e 67 | 20 6f 66 20 74 68 65 20 |.sharing| of the |
|00005a80| 72 65 70 72 65 73 65 6e | 74 61 74 69 6f 6e 2e 00 |represen|tation..|
|00005a90| 01 00 0a 00 f7 00 cf 00 | fe 01 f8 00 34 00 f8 00 |........|....4...|
|00005aa0| cf 00 fe 01 f8 00 20 00 | fb 00 cf 00 fb 01 f8 00 |...... .|........|
|00005ab0| 01 00 0a 00 00 00 00 03 | 18 02 64 00 03 00 16 00 |........|..d.....|
|00005ac0| 2e 00 04 00 00 00 00 00 | a1 00 64 00 10 4f 4e 4c |........|..d..ONL|
|00005ad0| 4e 00 64 01 87 00 fb 00 | cf 01 07 01 1d 00 2a 1c |N.d.....|......*.|
|00005ae0| 0d 63 6c 61 73 73 20 43 | 53 74 72 69 6e 67 00 00 |.class C|String..|
|00005af0| a1 00 64 00 10 4f 4e 4c | 4e 00 64 01 95 01 05 00 |..d..ONL|N.d.....|
|00005b00| cf 01 11 00 d5 00 2a 0a | 01 7b 00 00 a1 00 64 00 |......*.|.{....d.|
|00005b10| 10 4f 4e 4c 4e 00 64 01 | 97 01 0f 00 cf 01 1b 00 |.ONLN.d.|........|
|00005b20| f9 00 2a 0a 07 70 75 62 | 6c 69 63 3a 00 00 a1 00 |..*..pub|lic:....|
|00005b30| 64 00 10 4f 4e 4c 4e 00 | 64 01 9f 01 19 00 e1 01 |d..ONLN.|d.......|
|00005b40| 25 01 a1 00 2b 12 0a 20 | 6f 70 65 72 61 74 6f 72 |%...+.. |operator|
|00005b50| 3d 28 63 6f 6e 73 74 20 | 43 53 74 72 69 6e 67 26 |=(const |CString&|
|00005b60| 20 6f 74 68 65 72 29 3b | 00 00 a1 00 64 00 10 4f | other);|....d..O|
|00005b70| 4e 4c 4e 00 64 01 c0 01 | 23 00 e1 01 2f 00 e7 00 |NLN.d...|#.../...|
|00005b80| 2a 0a 01 c9 00 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |*.......|d..ONLN.|
|00005b90| 64 01 c2 01 37 00 cf 01 | 43 00 ff 00 28 01 40 00 |d...7...|C...(.@.|
|00005ba0| cf 08 70 72 69 76 61 74 | 65 3a 00 00 a1 00 64 00 |..privat|e:....d.|
|00005bb0| 10 4f 4e 4c 4e 00 64 01 | cb 01 41 00 e1 01 4d 01 |.ONLN.d.|..A...M.|
|00005bc0| 47 00 2b 12 0a 11 43 53 | 74 72 69 6e 67 52 65 70 |G.+...CS|tringRep|
|00005bd0| 20 2a 66 52 65 70 3b 00 | a1 00 64 00 10 4f 4e 4c | *fRep;.|..d..ONL|
|00005be0| 4e 00 64 01 e4 01 41 01 | 5f 01 4d 01 ef 00 29 7e |N.d...A.|_.M...)~|
|00005bf0| 18 2f 2f 20 70 6f 69 6e | 74 65 72 20 74 6f 20 43 |.// poin|ter to C|
|00005c00| 53 74 72 69 6e 67 52 65 | 70 00 01 00 0a 01 57 00 |StringRe|p.....W.|
|00005c10| cf 01 5e 01 f8 00 34 01 | 58 00 cf 01 5e 01 f8 00 |..^...4.|X...^...|
|00005c20| 20 01 5b 00 cf 01 5b 01 | f8 00 01 00 0a 00 00 00 | .[...[.|........|
|00005c30| 00 03 18 02 64 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |....d...|d..ONLN.|
|00005c40| 64 01 fd 01 4b 00 cf 01 | 57 00 db 00 28 01 54 00 |d...K...|W...(.T.|
|00005c50| cf 02 7d 3b 00 00 03 00 | 10 00 2e 00 04 00 00 01 |..};....|........|
|00005c60| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 02 01 01 |....d..O|NLN.d...|
|00005c70| 67 00 cf 01 73 01 d9 00 | 2a 1c 41 53 69 6e 63 65 |g...s...|*.ASince|
|00005c80| 20 74 68 65 20 6f 62 6a | 65 63 74 20 69 73 20 73 | the obj|ect is s|
|00005c90| 68 61 72 65 64 2c 20 61 | 20 72 65 66 65 72 65 6e |hared, a| referen|
|00005ca0| 63 65 20 63 6f 75 6e 74 | 20 66 69 65 6c 64 20 69 |ce count| field i|
|00005cb0| 6e 20 74 68 65 20 63 6c | 61 73 73 20 00 00 03 00 |n the cl|ass ....|
|00005cc0| 16 00 2e 00 04 00 00 00 | 00 00 a1 00 64 00 10 4f |........|....d..O|
|00005cd0| 4e 4c 4e 00 64 02 42 01 | 73 00 cf 01 7f 01 0b 00 |NLN.d.B.|s.......|
|00005ce0| 2a 0c 0a 43 53 74 72 69 | 6e 67 52 65 70 00 03 00 |*..CStri|ngRep...|
|00005cf0| 10 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 02 4c 01 |....d..O|NLN.d.L.|
|00005d00| 73 01 0b 01 7f 01 8d 00 | 29 3c 1f 20 69 73 20 6e |s.......|)<. is n|
|00005d10| 65 65 64 65 64 20 74 6f | 20 62 65 20 73 75 72 65 |eeded to| be sure|
|00005d20| 20 74 68 61 74 20 74 68 | 65 20 00 00 03 00 16 00 | that th|e ......|
|00005d30| a1 00 64 00 10 4f 4e 4c | 4e 00 64 02 6b 01 73 01 |..d..ONL|N.d.k.s.|
|00005d40| 8d 01 7f 01 c9 00 29 82 | 0a 43 53 74 72 69 6e 67 |......).|.CString|
|00005d50| 52 65 70 00 03 00 10 00 | a1 00 64 00 10 4f 4e 4c |Rep.....|..d..ONL|
|00005d60| 4e 00 64 02 75 01 73 01 | c9 01 7f 01 f0 00 29 3c |N.d.u.s.|......)<|
|00005d70| 0b 20 6f 62 6a 65 63 74 | 20 69 73 20 00 00 a1 00 |. object| is ....|
|00005d80| 64 00 10 4f 4e 4c 4e 00 | 64 02 80 01 7f 00 cf 01 |d..ONLN.|d.......|
|00005d90| 8b 01 75 00 28 01 88 00 | cf 24 6f 6e 6c 79 20 64 |..u.(...|.$only d|
|00005da0| 65 6c 65 74 65 64 20 77 | 68 65 6e 20 74 68 65 72 |eleted w|hen ther|
|00005db0| 65 20 61 72 65 20 6e 6f | 20 6d 6f 72 65 20 00 00 |e are no| more ..|
|00005dc0| 03 00 16 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 02 |......d.|.ONLN.d.|
|00005dd0| a4 01 7f 01 75 01 8b 01 | 9f 00 29 a6 07 43 53 74 |....u...|..)..CSt|
|00005de0| 72 69 6e 67 00 00 03 00 | 10 00 a1 00 64 00 10 4f |ring....|....d..O|
|00005df0| 4e 4c 4e 00 64 02 ab 01 | 7f 01 9f 01 8b 01 e4 00 |NLN.d...|........|
|00005e00| 29 2a 12 20 6f 62 6a 65 | 63 74 73 20 75 73 69 6e |)*. obje|cts usin|
|00005e10| 67 20 69 74 2e 00 01 00 | 0a 01 97 00 cf 01 9e 01 |g it....|........|
|00005e20| f8 00 34 01 98 00 cf 01 | 9e 01 f8 00 20 01 9b 00 |..4.....|.... ...|
|00005e30| cf 01 9b 01 f8 00 01 00 | 0a 00 00 00 00 03 18 02 |........|........|
|00005e40| 64 00 03 00 16 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |d.......|d..ONLN.|
|00005e50| 64 02 bf 01 9b 00 cf 01 | a7 01 2f 00 28 01 a4 00 |d.......|../.(...|
|00005e60| cf 10 63 6c 61 73 73 20 | 43 53 74 72 69 6e 67 52 |..class |CStringR|
|00005e70| 65 70 00 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 02 |ep....d.|.ONLN.d.|
|00005e80| d0 01 a5 00 cf 01 b1 00 | d5 00 2a 0a 01 7b 00 00 |........|..*..{..|
|00005e90| a1 00 64 00 10 4f 4e 4c | 4e 00 64 02 d2 01 af 00 |..d..ONL|N.d.....|
|00005ea0| cf 01 bb 00 f9 00 2a 0a | 07 70 75 62 6c 69 63 3a |......*.|.public:|
|00005eb0| 00 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 02 da 01 |....d..O|NLN.d...|
|00005ec0| b9 00 e1 01 c5 01 35 00 | 2b 12 0a 0e 6c 6f 6e 67 |......5.|+...long|
|00005ed0| 20 4c 65 6e 67 74 68 28 | 29 3b 00 00 a1 00 64 00 | Length(|);....d.|
|00005ee0| 10 4f 4e 4c 4e 00 64 02 | e9 01 c3 00 e1 01 cf 00 |.ONLN.d.|........|
|00005ef0| e7 00 2a 0a 01 c9 00 00 | a1 00 64 00 10 4f 4e 4c |..*.....|..d..ONL|
|00005f00| 4e 00 64 02 eb 01 d7 00 | cf 01 e3 00 ff 00 28 01 |N.d.....|......(.|
|00005f10| e0 00 cf 08 70 72 69 76 | 61 74 65 3a 00 00 a1 00 |....priv|ate:....|
|00005f20| 64 00 10 4f 4e 4c 4e 00 | 64 02 f4 01 e1 00 e1 01 |d..ONLN.|d.......|
|00005f30| ed 01 23 00 2b 12 0a 0b | 63 68 61 72 20 2a 66 52 |..#.+...|char *fR|
|00005f40| 65 70 3b 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 03 |ep;...d.|.ONLN.d.|
|00005f50| 07 01 e1 01 5f 01 ed 01 | e3 00 29 7e 16 2f 2f 20 |...._...|..)~.// |
|00005f60| 70 6f 69 6e 74 65 72 20 | 74 6f 20 61 20 73 74 72 |pointer |to a str|
|00005f70| 69 6e 67 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 03 |ing...d.|.ONLN.d.|
|00005f80| 1e 01 eb 00 e1 01 f7 01 | 23 00 28 01 f4 00 e1 0b |........|#.(.....|
|00005f90| 69 6e 74 20 66 43 6f 75 | 6e 74 3b 00 a1 00 64 00 |int fCou|nt;...d.|
|00005fa0| 10 4f 4e 4c 4e 00 64 03 | 31 01 eb 01 5f 01 f7 01 |.ONLN.d.|1..._...|
|00005fb0| ef 00 29 7e 18 2f 2f 20 | 72 65 66 65 72 65 6e 63 |..)~.// |referenc|
|00005fc0| 65 20 63 6f 75 6e 74 20 | 66 69 65 6c 64 00 01 00 |e count |field...|
|00005fd0| 0a 02 01 00 cf 02 08 01 | f8 00 34 02 02 00 cf 02 |........|..4.....|
|00005fe0| 08 01 f8 00 20 02 05 00 | cf 02 05 01 f8 00 01 00 |.... ...|........|
|00005ff0| 0a 00 00 00 00 03 18 02 | 64 00 a1 00 64 00 10 4f |........|d...d..O|
|00006000| 4e 4c 4e 00 64 03 4a 01 | f5 00 cf 02 01 00 db 00 |NLN.d.J.|........|
|00006010| 28 01 fe 00 cf 02 7d 3b | 00 00 03 00 10 00 06 ff |(.....};|........|
|00006020| ff db 6c 00 a1 00 64 00 | 10 4f 4e 4c 4e 00 64 03 |..l...d.|.ONLN.d.|
|00006030| 4e 02 11 00 cf 02 1d 00 | f6 00 2a 1c 09 46 69 67 |N.......|..*..Fig|
|00006040| 75 72 65 20 31 2d 00 00 | 15 5b 6c 00 a1 00 64 00 |ure 1-..|.[l...d.|
|00006050| 10 4f 4e 4c 4e 00 64 03 | 57 02 11 00 f7 02 1d 00 |.ONLN.d.|W.......|
|00006060| fc 00 29 28 01 31 00 00 | 15 5b 6c 00 a1 00 64 00 |..)(.1..|.[l...d.|
|00006070| 10 4f 4e 4c 4e 00 64 03 | 58 02 11 00 fc 02 1d 01 |.ONLN.d.|X.......|
|00006080| 09 00 29 05 04 20 6f 6e | 20 00 15 12 44 00 a1 00 |..).. on| ...D...|
|00006090| 64 00 10 4f 4e 4c 4e 00 | 64 03 5c 02 11 01 0a 02 |d..ONLN.|d.\.....|
|000060a0| 1d 01 26 00 29 0e 06 70 | 61 67 65 20 35 00 15 ed |..&.)..p|age 5...|
|000060b0| b0 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 03 62 02 |....d..O|NLN.d.b.|
|000060c0| 11 01 26 02 1d 01 dc 00 | 29 1c 2d 20 69 6c 6c 75 |..&.....|).- illu|
|000060d0| 73 74 72 61 74 65 73 20 | 74 68 65 20 73 74 61 74 |strates |the stat|
|000060e0| 65 20 6f 66 20 74 77 6f | 20 73 74 72 69 6e 67 20 |e of two| string |
|000060f0| 6f 62 6a 65 63 74 73 20 | 00 00 03 00 16 00 06 ff |objects |........|
|00006100| ff 92 44 00 15 c9 10 00 | a1 00 64 00 10 4f 4e 4c |..D.....|..d..ONL|
|00006110| 4e 00 64 03 8f 02 11 01 | dd 02 1d 01 e3 00 29 b7 |N.d.....|......).|
|00006120| 01 61 00 00 03 00 10 00 | 06 ff ff db 6c 00 15 c9 |.a......|....l...|
|00006130| 10 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 03 90 02 |....d..O|NLN.d...|
|00006140| 11 01 e3 02 1d 01 f7 00 | 29 06 05 20 61 6e 64 20 |........|).. and |
|00006150| 00 00 03 00 16 00 06 00 | 00 00 00 00 a1 00 64 00 |........|......d.|
|00006160| 10 4f 4e 4c 4e 00 64 03 | 95 02 1d 00 cf 02 29 00 |.ONLN.d.|......).|
|00006170| d5 00 28 02 26 00 cf 01 | 62 00 03 00 10 00 a1 00 |..(.&...|b.......|
|00006180| 64 00 10 4f 4e 4c 4e 00 | 64 03 96 02 1d 00 d5 02 |d..ONLN.|d.......|
|00006190| 29 01 36 00 29 06 16 20 | 61 66 74 65 72 20 74 68 |).6.).. |after th|
|000061a0| 65 20 61 73 73 69 67 6e | 6d 65 6e 74 20 00 03 00 |e assign|ment ...|
|000061b0| 16 00 a1 00 64 00 10 4f | 4e 4c 4e 00 64 03 ac 02 |....d..O|NLN.d...|
|000061c0| 1d 01 36 02 29 01 54 00 | 29 61 05 62 20 3d 20 61 |..6.).T.|)a.b = a|
|000061d0| 00 00 03 00 10 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |........|d..ONLN.|
|000061e0| 64 03 b1 02 1d 01 54 02 | 29 01 7a 00 29 1e 08 2e |d.....T.|).z.)...|
|000061f0| 20 57 68 69 6c 65 20 00 | 03 00 16 00 a1 00 64 00 | While .|......d.|
|00006200| 10 4f 4e 4c 4e 00 64 03 | b9 02 1d 01 7a 02 29 01 |.ONLN.d.|....z.).|
|00006210| 80 00 29 26 01 61 00 00 | 03 00 10 00 a1 00 64 00 |..)&.a..|......d.|
|00006220| 10 4f 4e 4c 4e 00 64 03 | ba 02 1d 01 80 02 29 01 |.ONLN.d.|......).|
|00006230| 95 00 29 06 05 20 61 6e | 64 20 00 00 03 00 16 00 |..).. an|d ......|
|00006240| a1 00 64 00 10 4f 4e 4c | 4e 00 64 03 bf 02 1d 01 |..d..ONL|N.d.....|
|00006250| 95 02 29 01 9b 00 29 15 | 01 62 00 00 03 00 10 00 |..)...).|.b......|
|00006260| a1 00 64 00 10 4f 4e 4c | 4e 00 64 03 c0 02 1d 01 |..d..ONL|N.d.....|
|00006270| 9b 02 29 01 e1 00 29 06 | 0f 20 6e 61 6d 65 20 73 |..)...).|. name s|
|00006280| 65 70 61 72 61 74 65 20 | 00 00 03 00 16 00 a1 00 |eparate |........|
|00006290| 64 00 10 4f 4e 4c 4e 00 | 64 03 cf 02 29 00 cf 02 |d..ONLN.|d...)...|
|000062a0| 35 00 f9 00 28 02 32 00 | cf 07 43 53 74 72 69 6e |5...(.2.|..CStrin|
|000062b0| 67 00 03 00 10 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |g.......|d..ONLN.|
|000062c0| 64 03 d6 02 29 00 f9 02 | 35 01 a3 00 29 2a 29 20 |d...)...|5...)*) |
|000062d0| 6f 62 6a 65 63 74 73 2c | 20 62 6f 74 68 20 6f 62 |objects,| both ob|
|000062e0| 6a 65 63 74 73 20 70 6f | 69 6e 74 20 74 6f 20 74 |jects po|int to t|
|000062f0| 68 65 20 73 61 6d 65 20 | 00 00 03 00 16 00 a1 00 |he same |........|
|00006300| 64 00 10 4f 4e 4c 4e 00 | 64 03 ff 02 29 01 a3 02 |d..ONLN.|d...)...|
|00006310| 35 01 df 00 29 aa 0a 43 | 53 74 72 69 6e 67 52 65 |5...)..C|StringRe|
|00006320| 70 00 03 00 10 00 a1 00 | 64 00 10 4f 4e 4c 4e 00 |p.......|d..ONLN.|
|00006330| 64 04 09 02 29 01 df 02 | 35 01 e1 00 29 3c 01 20 |d...)...|5...)<. |
|00006340| 00 00 2e 00 04 00 00 01 | 00 00 a1 00 64 00 10 4f |........|....d..O|
|00006350| 4e 4c 4e 00 64 04 0a 02 | 35 00 cf 02 41 00 eb 00 |NLN.d...|5...A...|
|00006360| 28 02 3e 00 cf 07 6f 62 | 6a 65 63 74 2e 00 ff 0f |(.>...ob|ject....|
|00006370| e2 00 00 00 00 03 18 02 | 64 00 11 02 ff 0c 00 ff |........|d.......|
|00006380| ff ff ff 00 00 00 00 00 | 00 00 00 02 64 00 00 03 |........|....d...|
|00006390| 18 00 00 00 00 00 00 00 | 01 00 0a 00 00 00 00 03 |........|........|
|000063a0| 18 02 64 00 0a 00 00 00 | 00 00 00 00 00 00 34 00 |..d.....|......4.|
|000063b0| 72 00 6c 00 7c 01 f8 00 | 2c 00 08 00 14 05 54 69 |r.l.|...|,.....Ti|
|000063c0| 6d 65 73 00 03 00 14 00 | 04 02 00 00 0d 00 0c 00 |mes.....|........|
|000063d0| 2e 00 04 00 00 01 00 00 | 15 d8 c0 00 28 00 7a 01 |........|....(.z.|
|000063e0| 82 14 55 73 69 6e 67 20 | 46 57 5f 54 43 6f 75 6e |..Using |FW_TCoun|
|000063f0| 74 65 64 50 74 72 00 00 | 34 02 b4 00 6c 02 be 02 |tedPtr..|4...l...|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.